(match_user, main): Use full buffer for fgets(); was off by one.
This commit is contained in:
parent
47d84b2479
commit
95d2b48ee2
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue