You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2009/04/02 00:10:31 UTC
svn commit: r761085 - /httpd/httpd/trunk/modules/proxy/mod_serf.c
Author: trawick
Date: Wed Apr 1 22:10:30 2009
New Revision: 761085
URL: http://svn.apache.org/viewvc?rev=761085&view=rev
Log:
ap_strchr_p() is the one that takes (protects) a const char *
Modified:
httpd/httpd/trunk/modules/proxy/mod_serf.c
Modified: httpd/httpd/trunk/modules/proxy/mod_serf.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_serf.c?rev=761085&r1=761084&r2=761085&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/mod_serf.c (original)
+++ httpd/httpd/trunk/modules/proxy/mod_serf.c Wed Apr 1 22:10:30 2009
@@ -638,7 +638,7 @@
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 @@
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,