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:
parent
cba128915b
commit
1d4328ffce
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user