openbsd-ports/games/gnuchess/patches/patch-nondsp_c
sturm 8e669b087c - regen patchfiles
- remove hashfile support
  + useless due to missing permissions anyways
  + creates the hashfile during build outside the fake area, if building
    as root
2004-01-09 20:06:43 +00:00

26 lines
640 B
Plaintext

$OpenBSD: patch-nondsp_c,v 1.1 2004/01/09 20:06:43 sturm Exp $
--- nondsp.c.orig 1998-09-28 08:41:22.000000000 +0200
+++ nondsp.c 2004-01-09 20:33:29.000000000 +0100
@@ -264,10 +264,10 @@ SetupBoard (void)
NewGame ();
- gets (s); /* skip "setup" command */
+ fgets (s, 80, stdin); /* skip "setup" command */
for (r = 7; r >= 0; r--)
{
- gets (s);
+ fgets (s, 80, stdin);
for (c = 0; c <= 7; c++)
{
ch = s[c];
@@ -617,7 +617,7 @@ SelectLevel (CHAR *sx)
if (!T[0])
{
printz (CP[61]);
- gets (T);
+ fgets (T, 64, stdin);
}
strcat (T, "XX");
/* skip whitespace */