Don't complain about an early end-of-file in the -r case rather than
the opposite. Does this pointy hat look good on me?
This commit is contained in:
parent
263067951a
commit
4364d4c485
@ -308,7 +308,7 @@ getline(char *buf, size_t size)
|
||||
{
|
||||
if (fgets(buf, size, infp) != NULL)
|
||||
return (2);
|
||||
if (!rflag)
|
||||
if (rflag)
|
||||
return (0);
|
||||
warnx("%s: %s: short file", infile, outfile);
|
||||
return (1);
|
||||
|
Loading…
Reference in New Issue
Block a user