aboutsummaryrefslogtreecommitdiff
path: root/libbb/vdprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/vdprintf.c')
-rw-r--r--libbb/vdprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/vdprintf.c b/libbb/vdprintf.c
index feeb403a0..05426873e 100644
--- a/libbb/vdprintf.c
+++ b/libbb/vdprintf.c
@@ -12,10 +12,10 @@
#if defined(__GLIBC__) && __GLIBC__ < 2
int FAST_FUNC vdprintf(int d, const char *format, va_list ap)
{
- char buf[BUF_SIZE];
+ char buf[8 * 1024];
int len;
- len = vsnprintf(buf, BUF_SIZE, format, ap);
+ len = vsnprintf(buf, sizeof(buf), format, ap);
return write(d, buf, len);
}
#endif