aboutsummaryrefslogtreecommitdiff
path: root/lib/xwrap.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2013-09-03 17:56:28 -0500
committerRob Landley <rob@landley.net>2013-09-03 17:56:28 -0500
commit8fdcfdb4479dff7a993a25a63253f0e749fd99fe (patch)
tree99c94cfa5e698ff01b2dcdbb9a45d1f9a0abec21 /lib/xwrap.c
parentf538f420deffc242742ce2d0661a39fa9a3b5399 (diff)
downloadtoybox-8fdcfdb4479dff7a993a25a63253f0e749fd99fe.tar.gz
Introduce libbuf analogous to toybuf but for use by lib/*.c. Change readfile() semantics to be able to read into an existing buffer, or malloc its own if that's NULL.
Diffstat (limited to 'lib/xwrap.c')
-rw-r--r--lib/xwrap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xwrap.c b/lib/xwrap.c
index 2b0690f3..90c4d86a 100644
--- a/lib/xwrap.c
+++ b/lib/xwrap.c
@@ -425,7 +425,7 @@ char *xreadlink(char *name)
char *xreadfile(char *name)
{
- char *buf = readfile(name);
+ char *buf = readfile(name, 0, 0);
if (!buf) perror_exit("xreadfile %s", name);
return buf;
}