From: Christophe Jaillet Date: Wed, 4 May 2022 20:28:32 +0000 (+0000) Subject: Length computed by count_string() are accumulated in an apr_size_t, so be more consis... X-Git-Tag: 2.5.0-alpha2-ci-test-only~352 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cf2f54a0bef786b08547dc87a9c71fe35fc3f08;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/modules/loggers/mod_log_forensic.c b/modules/loggers/mod_log_forensic.c index f644a65f8d5..897a70cbc8f 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))