changeset 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 ef0bf6560071
children 1e4e707fc0bc
files lib/lib.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;