diff options
author | Jim Meyering <jim@meyering.net> | 1994-01-26 18:51:44 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1994-01-26 18:51:44 +0000 |
commit | c6756ec787c27922538635602d51dbf63da93b67 (patch) | |
tree | 1c35749d8032bb7e6f5da5f9edeb9e3fcbbdd2b8 | |
parent | f1adf86d0987a704b8bebffc91bdddbbd886e8ee (diff) | |
download | coreutils-c6756ec787c27922538635602d51dbf63da93b67.tar.xz |
.
-rw-r--r-- | src/csplit.c | 2 | ||||
-rw-r--r-- | src/unexpand.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/csplit.c b/src/csplit.c index 54bd498d7..ad13b2645 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 12762e354..6c3a52776 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); |