summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2001-09-14 02:59:08 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2001-09-14 02:59:08 +0000
commit675343c517b2595be0423a3af80f4a3c537b1528 (patch)
treebc629d903b409b4f6d393df51ebfae89f0210667
parent94666c4b55c33c35994bfab2fb4177a7d5198fd1 (diff)
replaced gets() with fgets()
-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 4688444498..29a699fa57 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)) {