summaryrefslogtreecommitdiff
path: root/games/gnuchess4/patches/patch-aa
blob: 37782a99bf6518f966ff3bfe887ce7dc449e7407 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-aa,v 1.2 2005/04/17 04:58:22 minskim Exp $

--- dspcom.c.orig	1998-09-28 01:41:19.000000000 -0500
+++ dspcom.c
@@ -1099,7 +1099,7 @@ InputCommand (void)
 #ifdef NONDSP
       s[0] = sx[0] = '\0';
       while (!sx[0])
-	(void) gets (sx);
+	(void) fgets (sx, 80, stdin); sx[79] = '\0';
 #else
       fflush (stdout);
 #ifdef MSDOS