aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2011-11-13 21:05:28 -0600
committerRob Landley <rob@landley.net>2011-11-13 21:05:28 -0600
commit8d43d913f977e7dd4d6a2a9177a4f303bf60c1c5 (patch)
tree63f727544a1c2d8b2a7566ef083427fafc619fd6 /lib
parent43c2e62d74f1cf1e8b20b87bacac5b7b3e454f99 (diff)
downloadtoybox-8d43d913f977e7dd4d6a2a9177a4f303bf60c1c5.tar.gz
xreadall() returns void... how does that even compile?
Diffstat (limited to 'lib')
-rw-r--r--lib/lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib.c b/lib/lib.c
index 08c991dd..0cef3afc 100644
--- 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;
}