diff options
Diffstat (limited to 'src/csplit.c')
-rw-r--r-- | src/csplit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/csplit.c b/src/csplit.c index f27290b77..54bd498d7 100644 --- a/src/csplit.c +++ b/src/csplit.c @@ -56,6 +56,7 @@ char *realloc (); #endif /* INT_MAX */ void error (); +int safe_read (); static char *xrealloc (); @@ -314,7 +315,7 @@ read_input (dest, max) if (max == 0) return 0; - bytes_read = read (input_desc, dest, max); + bytes_read = safe_read (input_desc, dest, max); if (bytes_read == 0) have_read_eof = TRUE; |