Fix buffer overflow, patch by Typone Alfredo (alfredo@tupone.it).
authorLuis Felipe Strano Moraes <luis.strano@gmail.com>
Tue, 13 Mar 2012 20:58:00 +0000 (17:58 -0300)
committerLuis Felipe Strano Moraes <luis.strano@gmail.com>
Tue, 13 Mar 2012 20:58:00 +0000 (17:58 -0300)
gnushogi/commondsp.c

index b5b59d7..af9df16 100644 (file)
@@ -1735,7 +1735,7 @@ InputCommand(char *command)
                 s[0] = sx[0] = '\0';
 
                 while(!sx[0])
-                    (void)fgets(sx, 256, stdin);
+                    (void)fgets(sx, 80, stdin);
             }
             else
             {