diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-12 00:20:02 +0400 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-12 00:20:02 +0400 |
commit | e5d37ccb6e7ea12b61f1063fec13b2e9abbfcb84 (patch) | |
tree | 3b34351acd2a0abc52a086a30ddac908d346f30e /libbb/vdprintf.c | |
parent | f893da875a24138fac30f070c7101b5330f0fef0 (diff) |
httpd: fix CGI handling bug (we were closing wrong fd).
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 d16c51947..726d56374 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 |