Check for read errors.
This commit is contained in:
parent
4817b11015
commit
3a9d887f93
@ -196,6 +196,8 @@ cont:
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (ferror(stdin))
|
||||
err(1, NULL);
|
||||
} while (argc > 0);
|
||||
fflush(stdout);
|
||||
exit(0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user