$NetBSD: patch-ac,v 1.1.1.1 1999/02/08 08:48:37 frueauf Exp $ --- ../../gnuchess-4.0.pl79/src/nondsp.c 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 */