From 6af9d4c85f0b36c5d6589e23073d1b10f560c81d Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Tue, 10 Nov 2009 15:29:04 +0000 Subject: [PATCH] fix off by one error git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@834500 13f79535-47bb-0310-9956-ffa450edef68 --- modules/loggers/mod_log_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/loggers/mod_log_config.c b/modules/loggers/mod_log_config.c index b284f76070..51516650e8 100644 --- a/modules/loggers/mod_log_config.c +++ b/modules/loggers/mod_log_config.c @@ -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; -- 2.40.0