Return to file.c CVS log | Up to [local] / src / usr.bin / grep |
version 1.4, 2003/07/10 17:02:48 | version 1.5, 2003/12/29 21:20:55 | ||
---|---|---|---|
|
|
||
else | else | ||
errx(2, "%s: %s", fname, gzerrstr); | errx(2, "%s: %s", fname, gzerrstr); | ||
} | } | ||
if (c == '\n') | |||
break; | |||
if (n >= lnbuflen) { | if (n >= lnbuflen) { | ||
lnbuflen *= 2; | lnbuflen *= 2; | ||
lnbuf = grep_realloc(lnbuf, ++lnbuflen); | lnbuf = grep_realloc(lnbuf, ++lnbuflen); | ||
} | } | ||
if (c == '\n') | |||
break; | |||
lnbuf[n] = c; | lnbuf[n] = c; | ||
} | } | ||