]> granicus.if.org Git - apache/commitdiff
When adding APR_EOL_STR in the error log record before calling
authorJeff Trawick <trawick@apache.org>
Fri, 27 Sep 2013 17:55:00 +0000 (17:55 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 27 Sep 2013 17:55:00 +0000 (17:55 +0000)
the writer, include that trailer in the length.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1527005 13f79535-47bb-0310-9956-ffa450edef68

server/log.c

index 127ecee0e6507db45675090d28b43d0845638dc3..d2318b81da43de9d2efd79dc5433eb3344ef8789 100644 (file)
@@ -1179,6 +1179,7 @@ static void log_error_core(const char *file, int line, int module_index,
                 len = MAX_STRING_LEN - sizeof(APR_EOL_STR);
             }
             strcpy(errstr + len, APR_EOL_STR);
+            len += strlen(APR_EOL_STR);
         }
 
         if (logf) {