Check for read errors.

This commit is contained in:
Tim J. Robbins 2004-07-31 06:22:57 +00:00
parent be5c85a71b
commit 70cd856a0c

View file

@ -196,6 +196,8 @@ cont:
continue;
}
}
if (ferror(stdin))
err(1, NULL);
} while (argc > 0);
fflush(stdout);
exit(0);