Check for read errors.

This commit is contained in:
tjr 2004-07-31 06:22:57 +00:00
parent 4817b11015
commit 3a9d887f93

View File

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