xreadall() returns void... how does that even compile?
authorRob Landley <rob@landley.net>
Mon, 14 Nov 2011 03:05:28 +0000 (21:05 -0600)
committerRob Landley <rob@landley.net>
Mon, 14 Nov 2011 03:05:28 +0000 (21:05 -0600)
lib/lib.c

index 08c991d..0cef3af 100644 (file)
--- a/lib/lib.c
+++ b/lib/lib.c
@@ -570,7 +570,7 @@ char *readfile(char *name)
        if (fd == -1) return 0;
        len = fdlength(fd);
        buf = xmalloc(len+1);
-       buf[xreadall(fd, buf, len)] = 0;
+       buf[readall(fd, buf, len)] = 0;
 
        return buf;
 }