From c6756ec787c27922538635602d51dbf63da93b67 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 26 Jan 1994 18:51:44 +0000 Subject: [PATCH] . --- src/csplit.c | 2 +- src/unexpand.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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); -- 2.47.3