commit | dbbd3d6e485d6a063dcd2f163313b52ce95b42f5 | [log] [tgz] |
---|---|---|
author | Rob Landley <rob@landley.net> | Sun Dec 08 13:26:05 2013 -0600 |
committer | Rob Landley <rob@landley.net> | Sun Dec 08 13:26:05 2013 -0600 |
tree | 4601a82e16aee5fc044dad101e3f854c25780a79 | |
parent | 7acbf5e49d0041ca006305c563be2f50f85f6ec7 [diff] [blame] |
Doing math on void pointers isn't portable, reported by Nathan McSween.
diff --git a/lib/lib.c b/lib/lib.c index 14de91d..16c36b0 100644 --- a/lib/lib.c +++ b/lib/lib.c
@@ -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;