1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/emulators/atari800/files/patch-ac
Satoshi Taoka 6f79c9c567 Updated to version 0.8.6 after I modified several problems
PR:		ports/7734
Submitted by:	Joel Sutton (maintainer)
1999-03-30 16:32:35 +00:00

27 lines
540 B
Plaintext

--- monitor.c.orig Sun Feb 22 02:19:59 1998
+++ monitor.c Thu Jun 18 21:05:50 1998
@@ -94,10 +94,13 @@
printf("> ");
fflush(stdout);
- if (gets(s) == NULL) {
+ if (fgets(s,256,stdin) == NULL) {
printf("\n> CONT\n");
strcpy(s, "CONT");
}
+
+ s[strlen(s)-1]='\0'; /* fgets provision */
+
t = get_token(s);
if (t == NULL) {
continue;
@@ -179,7 +182,7 @@
char gash[4];
printf("Press return to continue: ");
- gets(gash);
+ fgets(gash,4,stdin);
nlines = 0;
}
}