aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-08-11 20:20:02 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-08-11 20:20:02 +0000
commite5d37ccb6e7ea12b61f1063fec13b2e9abbfcb84 (patch)
tree3b34351acd2a0abc52a086a30ddac908d346f30e /libbb
parentf893da875a24138fac30f070c7101b5330f0fef0 (diff)
downloadbusybox-e5d37ccb6e7ea12b61f1063fec13b2e9abbfcb84.tar.gz
httpd: fix CGI handling bug (we were closing wrong fd).
Diffstat (limited to 'libbb')
-rw-r--r--libbb/vdprintf.c2
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