From: Luis Felipe Strano Moraes Date: Tue, 13 Mar 2012 20:58:00 +0000 (-0300) Subject: Fix buffer overflow, patch by Typone Alfredo (alfredo@tupone.it). X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=0a65b44bcb552f60a679822b665be693f78aa73d;p=gnushogi.git Fix buffer overflow, patch by Typone Alfredo (alfredo@tupone.it). --- diff --git a/gnushogi/commondsp.c b/gnushogi/commondsp.c index b5b59d7..af9df16 100644 --- a/gnushogi/commondsp.c +++ b/gnushogi/commondsp.c @@ -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 {