From 675343c517b2595be0423a3af80f4a3c537b1528 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 14 Sep 2001 02:59:08 +0000 Subject: [PATCH] replaced gets() with fgets() --- src/glut/glx/glut_dstr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glut/glx/glut_dstr.c b/src/glut/glx/glut_dstr.c index 46884444986..29a699fa571 100644 --- a/src/glut/glx/glut_dstr.c +++ b/src/glut/glx/glut_dstr.c @@ -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)) { -- 2.30.2