diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-07-03 09:48:07 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-07-03 09:48:07 +0000 |
commit | a5c488449e9738f2610f5f1f4331b382782ed4b3 (patch) | |
tree | 407e299b99c956da978016098ab244383790ef4c | |
parent | 61f6db130e9c2b524d99a34d623c6d05732c6c21 (diff) |
Using safe_read seems, well, safer...
-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 e75f967db..6c7e55c64 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. */ |