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 14de91df..16c36b02 100644
--- a/lib/lib.c
+++ b/lib/lib.c
@@ -67,7 +67,7 @@ ssize_t readall(int fd, void *buf, size_t len)
size_t count = 0;
while (count<len) {
- int i = read(fd, buf+count, len-count);
+ int i = read(fd, (char *)buf+count, len-count);
if (!i) break;
if (i<0) return i;
count += i;