summaryrefslogtreecommitdiff
path: root/src/csplit.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-01-09 03:47:21 +0000
committerJim Meyering <jim@meyering.net>1994-01-09 03:47:21 +0000
commit07cd9a8d1563ddc8627f762e67fffae95fd6ab30 (patch)
tree3ea6f2c5b82f78d41db79729b21986848d6e4e3a /src/csplit.c
parent4f90578a4f0cdb2e9f708d924dd67e6a5b9cd289 (diff)
downloadcoreutils-07cd9a8d1563ddc8627f762e67fffae95fd6ab30.tar.xz
safe_read and full_write + join patch
Diffstat (limited to 'src/csplit.c')
-rw-r--r--src/csplit.c3
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;