1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-03 11:33:37 +00:00

(read_score) [HAVE_GETDELIM]: Trim trailing space.

This commit is contained in:
Colin Walters 2002-04-23 20:23:05 +00:00
parent cba128915b
commit 1d4328ffce

View File

@ -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
{