replaced gets() with fgets()
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 14 Sep 2001 02:59:08 +0000 (02:59 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 14 Sep 2001 02:59:08 +0000 (02:59 +0000)
src/glut/glx/glut_dstr.c

index 46884444986326b59e5d344cac6ef8d5af1c7056..29a699fa5713b4dbbea669168343827780ca32e3 100644 (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)) {