diff options
author | Eric Andersen | 2003-07-03 09:48:07 +0000 |
---|---|---|
committer | Eric Andersen | 2003-07-03 09:48:07 +0000 |
commit | a5c488449e9738f2610f5f1f4331b382782ed4b3 (patch) | |
tree | 407e299b99c956da978016098ab244383790ef4c /libbb/full_read.c | |
parent | 61f6db130e9c2b524d99a34d623c6d05732c6c21 (diff) | |
download | busybox-a5c488449e9738f2610f5f1f4331b382782ed4b3.zip busybox-a5c488449e9738f2610f5f1f4331b382782ed4b3.tar.gz |
Using safe_read seems, well, safer...
Diffstat (limited to 'libbb/full_read.c')
-rw-r--r-- | libbb/full_read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/full_read.c b/libbb/full_read.c index e75f967..6c7e55c 100644 --- a/libbb/full_read.c +++ b/libbb/full_read.c @@ -37,7 +37,7 @@ ssize_t bb_full_read(int fd, void *buf, size_t len) total = 0; while (len > 0) { - cc = read(fd, buf, len); + cc = safe_read(fd, buf, len); if (cc < 0) return cc; /* read() returns -1 on failure. */ |