diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-11 20:20:02 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-11 20:20:02 +0000 |
commit | e5d37ccb6e7ea12b61f1063fec13b2e9abbfcb84 (patch) | |
tree | 3b34351acd2a0abc52a086a30ddac908d346f30e /libbb | |
parent | f893da875a24138fac30f070c7101b5330f0fef0 (diff) | |
download | busybox-e5d37ccb6e7ea12b61f1063fec13b2e9abbfcb84.tar.gz |
httpd: fix CGI handling bug (we were closing wrong fd).
Diffstat (limited to 'libbb')
-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 |