mirror of
https://github.com/apache/httpd.git
synced 2025-08-20 16:09:55 +00:00
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:
@ -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,
|
||||
|
Reference in New Issue
Block a user