From: Jeff Trawick Date: Thu, 16 Aug 2001 10:48:53 +0000 (+0000) Subject: can't pass const char * to ap_strchr() X-Git-Tag: 2.0.24~64 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60d30d560235ffda211a744b9f1bc9d635466000;p=apache can't pass const char * to ap_strchr() (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 --- diff --git a/modules/metadata/mod_usertrack.c b/modules/metadata/mod_usertrack.c index b23a80b87d..acbcb78396 100644 --- a/modules/metadata/mod_usertrack.c +++ b/modules/metadata/mod_usertrack.c @@ -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"; }