]> granicus.if.org Git - apache/commitdiff
can't pass const char * to ap_strchr()
authorJeff Trawick <trawick@apache.org>
Thu, 16 Aug 2001 10:48:53 +0000 (10:48 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 16 Aug 2001 10:48:53 +0000 (10:48 +0000)
(note that when AP_DEBUG is on, strchr() maps to ap_strchr() so we
find abuses of the broken strchr() interface)

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

modules/metadata/mod_usertrack.c

index b23a80b87dd82861df03aec453c512b7aa9d7225..acbcb78396beccaa0ea2ae24e0d1042fdec26307 100644 (file)
@@ -365,7 +365,7 @@ static const char *set_cookie_domain(cmd_parms *cmd, void *mconfig,
     if (name[0] != '.') {
         return "CookieDomain values must begin with a dot";
     }
-    if (strchr(&name[1], '.') == NULL) {
+    if (ap_strchr_c(&name[1], '.') == NULL) {
         return "CookieDomain values must contain at least one embedded dot";
     }