Replace unsafe use of gets()
[openafs.git] / src / tviced / state_analyzer.c
index faf571a..d3bfd38 100644 (file)
@@ -368,7 +368,7 @@ prompt(void)
                fprintf(stderr, "prompt state broken; aborting\n");
                return;
            }
-           gets(input);
+           fgets(input, 256, stdin);
 
            if (!strcmp(input, "")) {
                /* repeat last command */