]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
memchr() takes a char * as a first parameter, and 'buf' is a const char *.
authorChristophe Jaillet <jailletc36@apache.org>
Mon, 25 May 2026 15:51:50 +0000 (15:51 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Mon, 25 May 2026 15:51:50 +0000 (15:51 +0000)
This breaks build process at least with gcc 16.1.1 and maintainer-mode enabled.

Without maintainer-mode, only a warning is generated.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1934594 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/sed1.c

index 047f49ba1317074f91bf0f62c1e8934ee847c3b1..21f6e5ec7e2f347b49dbcd6636ba00b1915c1b08 100644 (file)
@@ -436,7 +436,7 @@ apr_status_t sed_eval_buffer(sed_eval_t *eval, const char *buf, apr_size_t bufsz
         char *n;
         apr_size_t llen;
 
-        n = memchr(buf, '\n', bufsz);
+        n = memchr((char *)buf, '\n', bufsz);
         if (n == NULL)
             break;