From: Colin Walters Date: Tue, 23 Apr 2002 20:23:05 +0000 (+0000) Subject: (read_score) [HAVE_GETDELIM]: Trim trailing space. X-Git-Tag: ttn-vms-21-2-B4~15451 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1d4328ffce9fefc5015fe24368ea73a527d0f646;p=emacs.git (read_score) [HAVE_GETDELIM]: Trim trailing space. --- diff --git a/lib-src/update-game-score.c b/lib-src/update-game-score.c index 110c6a9e605..0762956a701 100644 --- 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 {