commit | a5c488449e9738f2610f5f1f4331b382782ed4b3 | [log] [tgz] |
---|---|---|
author | Eric Andersen <andersen@codepoet.org> | Thu Jul 03 09:48:07 2003 +0000 |
committer | Eric Andersen <andersen@codepoet.org> | Thu Jul 03 09:48:07 2003 +0000 |
tree | 407e299b99c956da978016098ab244383790ef4c | |
parent | 61f6db130e9c2b524d99a34d623c6d05732c6c21 [diff] [blame] |
Using safe_read seems, well, safer...
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 @@ 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. */