termination is completely unneeded and superflous. In
which case, the original allocation size is sufficient
since nothing external worries about a NULL nor
looks for it.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@602491
13f79535-47bb-0310-9956-
ffa450edef68
{
apr_size_t written;
struct ap_vrprintf_data vd;
- char vrprintf_buf[AP_IOBUFSIZE+1];
+ char vrprintf_buf[AP_IOBUFSIZE];
vd.vbuff.curpos = vrprintf_buf;
vd.vbuff.endpos = vrprintf_buf + AP_IOBUFSIZE;
written = apr_vformatter(r_flush, &vd.vbuff, fmt, va);
- /* tack on null terminator on remaining string */
- *(vd.vbuff.curpos) = '\0';
-
if (written != -1) {
int n = vd.vbuff.curpos - vrprintf_buf;