From: Brian Paul Date: Fri, 14 Sep 2001 02:59:08 +0000 (+0000) Subject: replaced gets() with fgets() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=675343c517b2595be0423a3af80f4a3c537b1528;p=mesa.git replaced gets() with fgets() --- 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)) {