From: Jim Meyering Date: Wed, 26 Jan 1994 18:51:44 +0000 (+0000) Subject: . X-Git-Tag: textutils-1_12_1~766 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c6756ec787c27922538635602d51dbf63da93b67;p=thirdparty%2Fcoreutils.git . --- diff --git a/src/csplit.c b/src/csplit.c index 54bd498d78..ad13b2645b 100644 --- a/src/csplit.c +++ b/src/csplit.c @@ -609,7 +609,7 @@ load_buffer () b->bytes_used += (unsigned) read_input (p, bytes_avail); lines_found = record_line_starts (b); - bytes_wanted = b->bytes_alloc + INCR_SIZE; + bytes_wanted = b->bytes_alloc * 2; if (!lines_found) free_buffer (b); } diff --git a/src/unexpand.c b/src/unexpand.c index 12762e3544..6c3a527764 100644 --- a/src/unexpand.c +++ b/src/unexpand.c @@ -282,6 +282,9 @@ unexpand () int pending = 0; /* Pending columns of blanks. */ fp = next_file ((FILE *) NULL); + if (fp == NULL) + return; + for (;;) { c = getc (fp);