]> granicus.if.org Git - apache/commitdiff
only write the first len chars to syslog, as the buffer may have additional
authorJeff Trawick <trawick@apache.org>
Thu, 18 Oct 2012 15:55:46 +0000 (15:55 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 18 Oct 2012 15:55:46 +0000 (15:55 +0000)
text added speculatively

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

CHANGES
server/log.c

diff --git a/CHANGES b/CHANGES
index b47444d69b6f8dfe62100c2bcc8b754ff5067b93..c311e42b88914359c2114f352ba0df3e7fb9ff3c 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
 
+  *) syslog logging: Remove stray ", referer" at the end of some messages.
+     [Jeff Trawick]
+
   *) configure: Fix processing of --disable-FEATURE for various features.
      [Jeff Trawick]
 
index 60e253fb5eea502c7c3401fec975b865eb6d2d2c..6ec5f4f5b95ab158fb2496c69fa732bfe4112a71 100644 (file)
@@ -1088,7 +1088,8 @@ static void write_logline(char *errstr, apr_size_t len, apr_file_t *logf,
     }
 #ifdef HAVE_SYSLOG
     else {
-        syslog(level < LOG_PRIMASK ? level : APLOG_DEBUG, "%s", errstr);
+        syslog(level < LOG_PRIMASK ? level : APLOG_DEBUG, "%.*s",
+               (int)len, errstr);
     }
 #endif
 }