From 64119fafdd1a04d34d7fd0415ffc8ccf2c08660f Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Fri, 13 Aug 2004 12:11:50 +0000 Subject: [PATCH] fix some const issues with string searching git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104644 13f79535-47bb-0310-9956-ffa450edef68 --- modules/proxy/proxy_balancer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/proxy/proxy_balancer.c b/modules/proxy/proxy_balancer.c index 04e3ce0d28..0cad4dba73 100644 --- a/modules/proxy/proxy_balancer.c +++ b/modules/proxy/proxy_balancer.c @@ -63,8 +63,8 @@ static char *get_cookie_param(request_rec *r, const char *name) const char *start_cookie; if ((cookies = apr_table_get(r->headers_in, "Cookie"))) { - for (start_cookie = strstr(cookies, name); start_cookie; - start_cookie = strstr(start_cookie + 1, name)) { + for (start_cookie = ap_strstr_c(cookies, name); start_cookie; + start_cookie = ap_strstr_c(start_cookie + 1, name)) { if (start_cookie == cookies || start_cookie[-1] == ';' || start_cookie[-1] == ',' || @@ -244,7 +244,7 @@ static int rewrite_url(request_rec *r, proxy_worker *worker, const char *path = NULL; if (scheme) - path = strchr(scheme + 3, '/'); + path = ap_strchr_c(scheme + 3, '/'); /* we break the URL into host, port, uri */ if (!worker) { -- 2.50.1