changeset 44789:d095e59dc01d

(read_score) [HAVE_GETDELIM]: Trim trailing space.
author Colin Walters <walters@gnu.org>
date Tue, 23 Apr 2002 20:23:05 +0000
parents 40d89266b140
children 56ce64222cbe
files lib-src/update-game-score.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/update-game-score.c	Tue Apr 23 19:44:17 2002 +0000
+++ b/lib-src/update-game-score.c	Tue Apr 23 20:23:05 2002 +0000
@@ -254,6 +254,8 @@
     if (getdelim(&score->username, &count, ' ', f) < 1
 	|| score->username == NULL)
       return -1;
+    /* Trim the space */
+    score->username[strlen(score->username)-1] = '\0';
   }
 #else
   {