aboutsummaryrefslogtreecommitdiff
path: root/lib/xwrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/xwrap.c')
-rw-r--r--lib/xwrap.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/xwrap.c b/lib/xwrap.c
index 6216d918..a2dd1c69 100644
--- a/lib/xwrap.c
+++ b/lib/xwrap.c
@@ -587,13 +587,12 @@ void xpidfile(char *name)
void xsendfile(int in, int out)
{
long len;
- char buf[4096];
if (in<0) return;
for (;;) {
- len = xread(in, buf, 4096);
+ len = xread(in, libbuf, sizeof(libbuf));
if (len<1) break;
- xwrite(out, buf, len);
+ xwrite(out, libbuf, len);
}
}