Commit 1d4328ff authored by Colin Walters's avatar Colin Walters
Browse files

(read_score) [HAVE_GETDELIM]: Trim trailing space.

parent cba12891
...@@ -254,6 +254,8 @@ read_score(FILE *f, struct score_entry *score) ...@@ -254,6 +254,8 @@ read_score(FILE *f, struct score_entry *score)
if (getdelim(&score->username, &count, ' ', f) < 1 if (getdelim(&score->username, &count, ' ', f) < 1
|| score->username == NULL) || score->username == NULL)
return -1; return -1;
/* Trim the space */
score->username[strlen(score->username)-1] = '\0';
} }
#else #else
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment