HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
cba1289
)
(read_score) [HAVE_GETDELIM]: Trim trailing space.
author
Colin Walters
<walters@gnu.org>
Tue, 23 Apr 2002 20:23:05 +0000
(20:23 +0000)
committer
Colin Walters
<walters@gnu.org>
Tue, 23 Apr 2002 20:23:05 +0000
(20:23 +0000)
lib-src/update-game-score.c
patch
|
blob
|
blame
|
history
diff --git
a/lib-src/update-game-score.c
b/lib-src/update-game-score.c
index
110c6a9
..
0762956
100644
(file)
--- 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
{