Silenced warning for ignoring the result of fgets in ntfsresize

edge.strict_endians
Jean-Pierre André 2011-07-05 12:17:11 +02:00
parent 683d0a0a4f
commit 5aa84db792
1 changed files with 2 additions and 2 deletions

View File

@ -355,8 +355,8 @@ static void proceed_question(void)
fflush(stderr);
printf("Are you sure you want to proceed (y/[n])? ");
buf[0] = 0;
fgets(buf, sizeof(buf), stdin);
if (!strchr(short_yes, buf[0])) {
if (!fgets(buf, sizeof(buf), stdin)
|| !strchr(short_yes, buf[0])) {
printf("OK quitting. NO CHANGES have been made to your "
"NTFS volume.\n");
exit(1);