httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r834500 - /httpd/httpd/trunk/modules/loggers/mod_log_config.c
Date Tue, 10 Nov 2009 15:29:04 GMT
Author: sf
Date: Tue Nov 10 15:29:04 2009
New Revision: 834500

URL: http://svn.apache.org/viewvc?rev=834500&view=rev
Log:
fix off by one error

Modified:
    httpd/httpd/trunk/modules/loggers/mod_log_config.c

Modified: httpd/httpd/trunk/modules/loggers/mod_log_config.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/loggers/mod_log_config.c?rev=834500&r1=834499&r2=834500&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/loggers/mod_log_config.c (original)
+++ httpd/httpd/trunk/modules/loggers/mod_log_config.c Tue Nov 10 15:29:04 2009
@@ -520,7 +520,7 @@
             if (!strcasecmp(name, a) && (value = apr_strtok(NULL, "=", &last2)))
{
                 char *last;
                 value += strspn(value, " \t");  /* Move past leading WS */
-                last = value + strlen(value);
+                last = value + strlen(value) - 1;
                 while (last >= value && apr_isspace(*last)) {
                    *last = '\0';
                    --last;



Mime
View raw message