null terminator, and this patch sets aside whatever space is needed
for the newline termination.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85880
13f79535-47bb-0310-9956-
ffa450edef68
/* NULL if we are logging to syslog */
if (logf) {
/* Truncate for the terminator (as ap_snprintf does) */
- if (len > MAX_STRING_LEN - 2)
- len = MAX_STRING_LEN - 2;
+ if (len > MAX_STRING_LEN - sizeof(APR_EOL_STR))
+ len = MAX_STRING_LEN - sizeof(APR_EOL_STR);
strcpy(errstr + len, APR_EOL_STR);
ap_puts(errstr, logf);
ap_flush(logf);