27 lines
625 B
Text
27 lines
625 B
Text
$NetBSD: patch-ac,v 1.2 2005/11/03 22:01:10 rillig Exp $
|
|
|
|
--- src/nondsp.c.orig Mon Sep 28 08:41:22 1998
|
|
+++ src/nondsp.c Thu Dec 10 23:39:26 1998
|
|
@@ -264,10 +264,11 @@
|
|
|
|
NewGame ();
|
|
|
|
- gets (s); /* skip "setup" command */
|
|
+ fgets (s, 80, stdin); /* skip "setup" command */
|
|
+ s[79] = '\0';
|
|
for (r = 7; r >= 0; r--)
|
|
{
|
|
- gets (s);
|
|
+ fgets (s, 80, stdin); s[79] = '\0';
|
|
for (c = 0; c <= 7; c++)
|
|
{
|
|
ch = s[c];
|
|
@@ -617,7 +618,7 @@
|
|
if (!T[0])
|
|
{
|
|
printz (CP[61]);
|
|
- gets (T);
|
|
+ fgets (T, 64, stdin); T[63] = '\0';
|
|
}
|
|
strcat (T, "XX");
|
|
/* skip whitespace */
|