From 7a22b1a75a52eaf8cc9519c490c299c0d0159562 Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Sat, 17 Jun 2000 12:36:54 +0000 Subject: [PATCH] Constification. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85598 13f79535-47bb-0310-9956-ffa450edef68 --- server/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/util.c b/server/util.c index 2f4ec7b76d..22c44e8a3d 100644 --- a/server/util.c +++ b/server/util.c @@ -550,7 +550,7 @@ API_EXPORT(char *) ap_make_dirstr_prefix(char *d, const char *s, int n) */ API_EXPORT(char *) ap_make_dirstr_parent(ap_pool_t *p, const char *s) { - char *last_slash = strrchr(s, '/'); + const char *last_slash = ap_strrchr_c(s, '/'); char *d; int l; @@ -608,7 +608,7 @@ API_EXPORT(void) ap_chdir_file(const char *file) const char *x; char buf[HUGE_STRING_LEN]; - x = strrchr(file, '/'); + x = ap_strrchr_c(file, '/'); if (x == NULL) { chdir(file); } -- 2.40.0