Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 53345 invoked from network); 10 Nov 2009 15:29:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Nov 2009 15:29:28 -0000 Received: (qmail 11917 invoked by uid 500); 10 Nov 2009 15:29:28 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 11857 invoked by uid 500); 10 Nov 2009 15:29:28 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 11848 invoked by uid 99); 10 Nov 2009 15:29:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Nov 2009 15:29:28 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Nov 2009 15:29:25 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 550C023888D4; Tue, 10 Nov 2009 15:29:04 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r834500 - /httpd/httpd/trunk/modules/loggers/mod_log_config.c Date: Tue, 10 Nov 2009 15:29:04 -0000 To: cvs@httpd.apache.org From: sf@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091110152904.550C023888D4@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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;