mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(read_score) [HAVE_GETDELIM]: Trim trailing space.
This commit is contained in:
parent
cba128915b
commit
1d4328ffce
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue