summaryrefslogtreecommitdiff
path: root/lib-src/update-game-score.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src/update-game-score.c')
-rw-r--r--lib-src/update-game-score.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib-src/update-game-score.c b/lib-src/update-game-score.c
index 110c6a9e605..0762956a701 100644
--- a/lib-src/update-game-score.c
+++ b/lib-src/update-game-score.c
@@ -254,6 +254,8 @@ read_score(FILE *f, struct score_entry *score)
if (getdelim(&score->username, &count, ' ', f) < 1
|| score->username == NULL)
return -1;
+ /* Trim the space */
+ score->username[strlen(score->username)-1] = '\0';
}
#else
{