From 3e26bde6dbc9a8a46d5a1a694e6810e689cbd25a Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Fri, 15 Oct 1999 07:00:58 +0000 Subject: * Fix PR/1394. * Apply changes from Paul Eggert. * Many other cleanups (index/rindex --> strchr/strrchr, etc.) --- vpath.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vpath.c') diff --git a/vpath.c b/vpath.c index 56a967f..3401327 100644 --- a/vpath.c +++ b/vpath.c @@ -402,11 +402,11 @@ selective_vpath_search (path, file, mtime_ptr) NAME_DPLEN gets the length of the prefix; FILENAME gets the pointer to the name-within-directory and FLEN is its length. */ - n = rindex (*file, '/'); + n = strrchr (*file, '/'); #if defined (WINDOWS32) || defined (__MSDOS__) /* We need the rightmost slash or backslash. */ { - char *bslash = rindex(*file, '\\'); + char *bslash = strrchr(*file, '\\'); if (!n || bslash > n) n = bslash; } -- cgit v1.2.3