mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-04 22:33:27 +00:00
6f79c9c567
PR: ports/7734 Submitted by: Joel Sutton (maintainer)
27 lines
540 B
Plaintext
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;
|
|
}
|
|
}
|