summaryrefslogtreecommitdiffstats
path: root/src/glut/glx/glut_dstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glut/glx/glut_dstr.c')
-rw-r--r--src/glut/glx/glut_dstr.c2
1 files changed, 1 insertions, 1 deletions
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)) {