From 2cf2f54a0bef786b08547dc87a9c71fe35fc3f08 Mon Sep 17 00:00:00 2001 From: Christophe Jaillet Date: Wed, 4 May 2022 20:28:32 +0000 Subject: [PATCH] Length computed by count_string() are accumulated in an apr_size_t, so be more consistent and use this data type also in this function. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1900564 13f79535-47bb-0310-9956-ffa450edef68 --- modules/loggers/mod_log_forensic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/loggers/mod_log_forensic.c b/modules/loggers/mod_log_forensic.c index f644a65f8d..897a70cbc8 100644 --- a/modules/loggers/mod_log_forensic.c +++ b/modules/loggers/mod_log_forensic.c @@ -146,9 +146,9 @@ typedef struct hlog { apr_size_t count; } hlog; -static int count_string(const char *p) +static apr_size_t count_string(const char *p) { - int n; + apr_size_t n; for (n = 0 ; *p ; ++p, ++n) if (TEST_CHAR(*p, T_ESCAPE_FORENSIC))