diff options
Diffstat (limited to 'libbb/vdprintf.c')
-rw-r--r-- | libbb/vdprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/vdprintf.c b/libbb/vdprintf.c index d16c519..726d563 100644 --- a/libbb/vdprintf.c +++ b/libbb/vdprintf.c @@ -15,7 +15,7 @@ int vdprintf(int d, const char *format, va_list ap) char buf[BUF_SIZE]; int len; - len = vsprintf(buf, format, ap); + len = vsnprintf(buf, BUF_SIZE, format, ap); return write(d, buf, len); } #endif |