git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85598
13f79535-47bb-0310-9956-
ffa450edef68
*/
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;
const char *x;
char buf[HUGE_STRING_LEN];
- x = strrchr(file, '/');
+ x = ap_strrchr_c(file, '/');
if (x == NULL) {
chdir(file);
}