aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}