diff lib-src/update-game-score.c @ 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 44995332ed1b
children cc0ab9acdc46
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
   {