diff lib/lib.c @ 1141:37cbbbe547a3 draft

Doing math on void pointers isn't portable, reported by Nathan McSween.
author Rob Landley <rob@landley.net>
date Sun, 08 Dec 2013 13:26:05 -0600
parents f9678ea553c8
children 80c9df5145fe
line wrap: on
line diff
--- a/lib/lib.c	Sun Dec 08 13:21:14 2013 -0600
+++ b/lib/lib.c	Sun Dec 08 13:26:05 2013 -0600
@@ -67,7 +67,7 @@
   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;