summaryrefslogtreecommitdiff
path: root/vpath.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>1999-10-15 07:00:58 +0000
committerPaul Smith <psmith@gnu.org>1999-10-15 07:00:58 +0000
commit586087cd9a44c63bab17e4399dff685517005784 (patch)
tree20d000099ba9c0723a3c4d8925adba97aee4f2dc /vpath.c
parenta8725cb9a149dec9fe6dde06d72a3cb6714c84e5 (diff)
downloadmake-586087cd9a44c63bab17e4399dff685517005784.tar.gz
* Fix PR/1394.
* Apply changes from Paul Eggert. * Many other cleanups (index/rindex --> strchr/strrchr, etc.)
Diffstat (limited to 'vpath.c')
-rw-r--r--vpath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vpath.c b/vpath.c
index 56a967f9..34013275 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;
}