From a5c488449e9738f2610f5f1f4331b382782ed4b3 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 3 Jul 2003 09:48:07 +0000 Subject: Using safe_read seems, well, safer... --- libbb/full_read.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- cgit v1.1