aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib.c b/lib/lib.c
index 6a9a0bdd..1126e11e 100644
--- a/lib/lib.c
+++ b/lib/lib.c
@@ -81,7 +81,7 @@ ssize_t writeall(int fd, void *buf, size_t len)
{
size_t count = 0;
while (count<len) {
- int i = write(fd, buf+count, len-count);
+ int i = write(fd, count+(char *)buf, len-count);
if (i<1) return i;
count += i;
}