httpd: fix CGI handling bug (we were closing wrong fd).

This commit is contained in:
Denis Vlasenko
2007-08-11 20:20:02 +00:00
parent f893da875a
commit e5d37ccb6e
2 changed files with 21 additions and 14 deletions

View File

@ -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