summary refs log tree commit diff homepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--play.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/play.c b/play.c
index c5310ff..251e826 100644
--- a/play.c
+++ b/play.c
@@ -164,6 +164,9 @@ int main(void) {
 	if (index < ScoresLen) {
 		attr_set(A_BOLD, 0, NULL);
 		getnstr(new.name, sizeof(new.name) - 1);
+		for (char *ch = new.name; *ch; ++ch) {
+			if (*ch < ' ') *ch = ' ';
+		}
 
 		scoresLock(file);
 		scoresRead(file);