openbsd-ports/games/gnuchess/patches/patch-aa

64 lines
1.4 KiB
Plaintext
Raw Normal View History

1998-05-19 22:59:10 -04:00
diff --minimal -c orig/gnuchess-4.0.pl77/src/dspcom.c gnuchess-4.0.pl77/src/dspcom.c
*** orig/gnuchess-4.0.pl77/src/dspcom.c Sun May 19 23:38:47 1996
--- dspcom.c Sat Feb 15 00:29:12 1997
***************
*** 1099,1105 ****
#ifdef NONDSP
s[0] = sx[0] = '\0';
while (!sx[0])
! (void) gets (sx);
#else
fflush (stdout);
#ifdef MSDOS
--- 1099,1105 ----
#ifdef NONDSP
s[0] = sx[0] = '\0';
while (!sx[0])
! (void) fgets (sx, 80, stdin);
#else
fflush (stdout);
#ifdef MSDOS
diff --minimal -c orig/gnuchess-4.0.pl77/src/nondsp.c gnuchess-4.0.pl77/src/nondsp.c
*** orig/gnuchess-4.0.pl77/src/nondsp.c Sun May 19 23:40:31 1996
--- nondsp.c Sat Feb 15 00:25:49 1997
***************
*** 264,273 ****
NewGame ();
! gets (s); /* skip "setup" command */
for (r = 7; r >= 0; r--)
{
! gets (s);
for (c = 0; c <= 7; c++)
{
ch = s[c];
--- 264,273 ----
NewGame ();
! fgets (s, 80, stdin); /* skip "setup" command */
for (r = 7; r >= 0; r--)
{
! fgets (s, 80, stdin);
for (c = 0; c <= 7; c++)
{
ch = s[c];
***************
*** 617,623 ****
if (!T[0])
{
printz (CP[61]);
! gets (T);
}
strcat (T, "XX");
/* skip whitespace */
--- 617,623 ----
if (!T[0])
{
printz (CP[61]);
! fgets (T, 64, stdin);
}
strcat (T, "XX");
/* skip whitespace */