diff lib/lib.c @ 1202:4f080cdb2f6e draft

Various cleanups found by Tom Sparrow's static analysis.
author Rob Landley <rob@landley.net>
date Sun, 16 Feb 2014 11:09:23 -0600
parents 80c9df5145fe
children 86745958cea9
line wrap: on
line diff
--- a/lib/lib.c	Thu Feb 13 06:45:35 2014 -0600
+++ b/lib/lib.c	Sun Feb 16 11:09:23 2014 -0600
@@ -81,7 +81,7 @@
 {
   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;
   }