Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
1d4328ff
Commit
1d4328ff
authored
Apr 23, 2002
by
Colin Walters
Browse files
(read_score) [HAVE_GETDELIM]: Trim trailing space.
parent
cba12891
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
lib-src/update-game-score.c
lib-src/update-game-score.c
+2
-0
No files found.
lib-src/update-game-score.c
View file @
1d4328ff
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment