]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Length computed by count_string() are accumulated in an apr_size_t, so be more consis...
authorChristophe Jaillet <jailletc36@apache.org>
Wed, 4 May 2022 20:28:32 +0000 (20:28 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Wed, 4 May 2022 20:28:32 +0000 (20:28 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1900564 13f79535-47bb-0310-9956-ffa450edef68

modules/loggers/mod_log_forensic.c

index f644a65f8d5e11c3539bec856532ed35751644a1..897a70cbc8fb2625d61de871557befe5b11c8ad6 100644 (file)
@@ -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))