]> code.citadel.org Git - citadel.git/blobdiff - citadel/parsedate.y
replace calls to gets with fgets
[citadel.git] / citadel / parsedate.y
index 776781bbb6b8a3d3128d6b52a70f5fea851a7dc2..bf69da311a2a1524dd1d27d7e30fe0d34fbddb22 100644 (file)
@@ -799,7 +799,7 @@ main(int ac, char *av[])
     for ( ; ; ) {
        (void)printf("\t> ");
        (void)fflush(stdout);
-       if (gets(buff) == NULL || buff[0] == '\n')
+       if (fgets(buff, sizeof buff, stdin) == NULL || buff[0] == '\n')
            break;
 #if YYDEBUG
        if (strcmp(buff, "yydebug") == 0) {