summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbb/full_read.c2
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. */