mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-14 23:46:10 +00:00
6f79c9c567
PR: ports/7734 Submitted by: Joel Sutton (maintainer)
30 lines
538 B
Plaintext
30 lines
538 B
Plaintext
--- prompts.c.orig Thu Jun 18 20:20:15 1998
|
|
+++ prompts.c Thu Jun 18 20:22:22 1998
|
|
@@ -10,7 +10,7 @@
|
|
char gash[128];
|
|
|
|
printf(message, string);
|
|
- gets(gash);
|
|
+ fgets(gash,128,stdin);
|
|
if (strlen(gash) > 0)
|
|
strcpy(string, gash);
|
|
}
|
|
@@ -20,7 +20,7 @@
|
|
char gash[128];
|
|
|
|
printf(message, *num);
|
|
- gets(gash);
|
|
+ fgets(gash,128,stdin);
|
|
if (strlen(gash) > 0)
|
|
sscanf(gash, "\n%d", num);
|
|
}
|
|
@@ -32,7 +32,7 @@
|
|
|
|
do {
|
|
printf(message, *yn);
|
|
- gets(gash);
|
|
+ fgets(gash,128,stdin);
|
|
|
|
if (strlen(gash) > 0)
|
|
t_yn = gash[0];
|