Path: blob/main/biology/babel/files/patch-menus.c
18160 views
--- menus.c.orig Tue Jan 21 16:52:36 19971+++ menus.c Sun Nov 18 16:43:32 20012@@ -63,9 +63,9 @@3}4}5printf("Input file name : ");6- gets(InfileName);7+ fgets(InfileName, BUFF_SIZE, stdin);8printf("Keywords : ");9- gets(InputKeywords);10+ fgets(InputKeywords, BUFF_SIZE, stdin);1112if (strlen(InputKeywords) < 1)13strcpy(InputKeywords,"KEYWORDS GO HERE");14@@ -108,11 +108,11 @@15}16}17printf("Output file name : ");18- gets(OutfileName);19+ fgets(OutfileName, BUFF_SIZE, stdin);20if (has_keywords)21{22printf("Keywords : ");23- gets(OutputKeywords);24+ fgets(OutputKeywords, BUFF_SIZE, stdin);25if (strlen(OutputKeywords) < 1)26strcpy(OutputKeywords,"KEYWORDS GO HERE");27}28@@ -167,7 +167,7 @@29while (done == FALSE)30{31printf("Choice : ");32- gets(choice_string);33+ fgets(choice_string, sizeof(choice_string), stdin);34for (i = 0; i < (int) strlen(choice_string); i++)35{36if (!isdigit(choice_string[i]))373839