ap_strchr_p() is the one that takes (protects) a const char *

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@761085 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jeff Trawick
2009-04-01 22:10:30 +00:00
parent 0acd50d150
commit 82b000731f

View 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,