]> granicus.if.org Git - apache/commitdiff
fix off by one error
authorStefan Fritsch <sf@apache.org>
Tue, 10 Nov 2009 15:29:04 +0000 (15:29 +0000)
committerStefan Fritsch <sf@apache.org>
Tue, 10 Nov 2009 15:29:04 +0000 (15:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@834500 13f79535-47bb-0310-9956-ffa450edef68

modules/loggers/mod_log_config.c

index b284f76070a040f9af36bc53155003f81ea65f05..51516650e8e4296f3d56567a5ce6352280e8b737 100644 (file)
@@ -520,7 +520,7 @@ static const char *log_cookie(request_rec *r, char *a)
             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;