You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by sf...@apache.org on 2009/11/10 16:29:04 UTC
svn commit: r834500 - /httpd/httpd/trunk/modules/loggers/mod_log_config.c
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;