projects
/
platform
/
upstream
/
toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43c2e62
)
xreadall() returns void... how does that even compile?
author
Rob Landley
<rob@landley.net>
Mon, 14 Nov 2011 03:05:28 +0000
(21:05 -0600)
committer
Rob Landley
<rob@landley.net>
Mon, 14 Nov 2011 03:05:28 +0000
(21:05 -0600)
lib/lib.c
patch
|
blob
|
history
diff --git
a/lib/lib.c
b/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[
x
readall(fd, buf, len)] = 0;
+ buf[readall(fd, buf, len)] = 0;
return buf;
}