]> granicus.if.org Git - apache/commitdiff
ap_strchr_p() is the one that takes (protects) a const char *
authorJeff Trawick <trawick@apache.org>
Wed, 1 Apr 2009 22:10:30 +0000 (22:10 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 1 Apr 2009 22:10:30 +0000 (22:10 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@761085 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_serf.c

index 019b32ddab86da6e8cd37f872527d470d86f085b..c0942463dda6eb13cbf8897bba0ef5f99803cd70 100644 (file)
@@ -638,7 +638,7 @@ static const char *add_pass(cmd_parms *cmd, void *vconf,
 
     for (i = 1; i < argc; i++) {
         const char *p = argv[i];
-        const char *x = ap_strchr(p, '=');
+        const char *x = ap_strchr_c(p, '=');
         
         if (x) {
             char *key = apr_pstrndup(cmd->pool, p, x-p);
@@ -690,7 +690,7 @@ static const char *add_cluster(cmd_parms *cmd, void *d,
 
     for (i = 2; i < argc; i++) {
         const char *p = argv[i];
-        const char *x = ap_strchr(p, '=');
+        const char *x = ap_strchr_c(p, '=');
 
         if (x && strlen(p) > 1) {
             apr_table_addn(cluster->params,