summaryrefslogtreecommitdiff
path: root/rule.c
diff options
context:
space:
mode:
Diffstat (limited to 'rule.c')
-rw-r--r--rule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rule.c b/rule.c
index 4983325..90e04e3 100644
--- a/rule.c
+++ b/rule.c
@@ -108,11 +108,11 @@ count_implicit_rule_limits ()
unsigned int len = strlen (dep->name);
#ifdef VMS
- char *p = rindex (dep->name, ']');
+ char *p = strrchr (dep->name, ']');
#else
- char *p = rindex (dep->name, '/');
+ char *p = strrchr (dep->name, '/');
#endif
- char *p2 = p != 0 ? index (dep->name, '%') : 0;
+ char *p2 = p != 0 ? strchr (dep->name, '%') : 0;
ndeps++;
if (len > max_pattern_dep_length)