You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ja...@apache.org on 2022/05/04 20:28:32 UTC

svn commit: r1900564 - /httpd/httpd/trunk/modules/loggers/mod_log_forensic.c

Author: jailletc36
Date: Wed May  4 20:28:32 2022
New Revision: 1900564

URL: http://svn.apache.org/viewvc?rev=1900564&view=rev
Log:
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.

Modified:
    httpd/httpd/trunk/modules/loggers/mod_log_forensic.c

Modified: httpd/httpd/trunk/modules/loggers/mod_log_forensic.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/loggers/mod_log_forensic.c?rev=1900564&r1=1900563&r2=1900564&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/loggers/mod_log_forensic.c (original)
+++ httpd/httpd/trunk/modules/loggers/mod_log_forensic.c Wed May  4 20:28:32 2022
@@ -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))