$OpenBSD: patch-src_nondsp_c,v 1.1 2002/08/02 20:27:18 naddy Exp $
--- src/nondsp.c.orig	Wed May 24 15:54:13 1995
+++ src/nondsp.c	Fri Aug  2 22:03:33 2002
@@ -292,10 +292,10 @@ SetupBoard (void)
 
   NewGame ();
 
-  gets (s);			/* skip "setup" command */
+  fgets (s, 79, stdin);			/* skip "setup" command */
   for (r = NO_ROWS-1; r >= 0; r--)
     {
-      gets (s);
+      fgets (s, 79, stdin);
       for (c = 0; c <= (NO_COLS-1); c++)
 	{
 	  ch = s[c];
@@ -645,7 +645,7 @@ SelectLevel (char *sx)
   for(;*p != 'X';*q++ = *p++);
   *q = '\0';
 /* line empty ask for input */
-  if(!T[0]){ printz (CP[61]); gets(T); strcat(T,"XX"); }
+  if(!T[0]){ printz (CP[61]); fgets(T, NO_SQUARES-1, stdin); strcat(T,"XX"); }
 /* skip blackspace */
   for (p = T; *p == ' '; p++) ;
 /* could be moves or a fischer clock */
