revert : Reverted to old behavior for errored reply in ntfsresize

edge.strict_endians
Jean-Pierre André 2011-08-04 15:49:35 +02:00
parent a3579a1674
commit f10f067c7b
1 changed files with 2 additions and 2 deletions

View File

@ -372,8 +372,8 @@ static void proceed_question(void)
fflush(stderr);
printf("Are you sure you want to proceed (y/[n])? ");
buf[0] = 0;
if (!fgets(buf, sizeof(buf), stdin)
|| !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);