Check for read errors.

This commit is contained in:
Tim J. Robbins 2004-07-30 10:58:06 +00:00
parent c80f54d479
commit be091cf3cc

View File

@ -297,6 +297,8 @@ filter(FILE *f)
maxcol = col;
continue;
}
if (ferror(f))
err(1, NULL);
if (maxcol)
flushln();
}