1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/biology/babel/files/patch-ab

38 lines
986 B
Plaintext
Raw Normal View History

--- menus.c.orig Thu Dec 4 20:20:28 1997
+++ menus.c Thu Dec 4 20:21:46 1997
@@ -63,9 +63,9 @@
}
}
printf("Input file name : ");
- gets(InfileName);
+ fgets(InfileName, BUFF_SIZE - 1, stdin);
printf("Keywords : ");
- gets(InputKeywords);
+ fgets(InputKeywords, BUFF_SIZE - 1, stdin);
if (strlen(InputKeywords) < 1)
strcpy(InputKeywords,"KEYWORDS GO HERE");
@@ -108,11 +108,11 @@
}
}
printf("Output file name : ");
- gets(OutfileName);
+ fgets(OutfileName, BUFF_SIZE - 1, stdin);
if (has_keywords)
{
printf("Keywords : ");
- gets(OutputKeywords);
+ fgets(OutputKeywords, BUFF_SIZE - 1, stdin);
if (strlen(OutputKeywords) < 1)
strcpy(OutputKeywords,"KEYWORDS GO HERE");
}
@@ -167,7 +167,7 @@
while (done == FALSE)
{
printf("Choice : ");
- gets(choice_string);
+ fgets(choice_string, 99, stdin);
for (i = 0; i < (int) strlen(choice_string); i++)
{
if (!isdigit(choice_string[i]))