]> git.pond.sub.org Git - empserver/blobdiff - src/util/files.c
(match_user, main): Use full buffer for fgets(); was off by one.
[empserver] / src / util / files.c
index 9b228587d7c98bf8f99c8ada68124c4107c28a72..189ef1a701d1160100e7d7635f098a65d925f039 100644 (file)
@@ -118,7 +118,7 @@ main(int argc, char *argv[])
        printf("WARNING: this blasts the existing game in %s (if any)\n",
           datadir);
        printf("continue? ");
-       fgets(buf, sizeof(buf) - 1, stdin);
+       fgets(buf, sizeof(buf), stdin);
        if (*buf != 'y' && *buf != 'Y')
            exit(1);
     }