summaryrefslogtreecommitdiff
path: root/libbb/full_write.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/full_write.c')
-rw-r--r--libbb/full_write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/full_write.c b/libbb/full_write.c
index 6f22555..30c7a50 100644
--- a/libbb/full_write.c
+++ b/libbb/full_write.c
@@ -36,7 +36,7 @@ ssize_t bb_full_write(int fd, const void *buf, size_t len)
total = 0;
while (len > 0) {
- cc = write(fd, buf, len);
+ cc = safe_write(fd, buf, len);
if (cc < 0)
return cc; /* write() returns -1 on failure. */