Handle EOF when skipping lines.

This commit is contained in:
jh 2011-02-07 18:05:56 +00:00
parent a3552254dc
commit c19aa41514

View File

@ -126,14 +126,17 @@ getfile(void)
char *p;
char *endp;
char **ep;
int c;
int multisep = (flags & ONEISEPONLY ? 0 : 1);
int nullpad = flags & NULLPAD;
char **padto;
while (skip--) {
getline();
c = getline();
if (flags & SKIPPRINT)
puts(curline);
if (c == EOF)
return;
}
getline();
if (flags & NOARGS && curlen < owidth)