]> granicus.if.org Git - apache/commitdiff
fix some const issues with string searching
authorJeff Trawick <trawick@apache.org>
Fri, 13 Aug 2004 12:11:50 +0000 (12:11 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 13 Aug 2004 12:11:50 +0000 (12:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104644 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_balancer.c

index 04e3ce0d28b6d9163e9ee08180adce7b6e35c8cc..0cad4dba730547687ee3a92eef6a512b63d6aa5b 100644 (file)
@@ -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) {