replaced gets() with fgets()

This commit is contained in:
Brian Paul 2001-09-14 02:59:08 +00:00
parent 94666c4b55
commit 675343c517

View file

@ -1548,7 +1548,7 @@ main(int argc, char **argv)
while (!feof(stdin)) {
if (tty)
printf("dstr> ");
str = gets(buffer);
str = fgets(buffer, 1023, stdin);
if (str) {
printf("\n");
if (!strcmp("v", str)) {