summaryrefslogtreecommitdiff
path: root/ar.c
diff options
context:
space:
mode:
Diffstat (limited to 'ar.c')
-rw-r--r--ar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ar.c b/ar.c
index 2e16435..3827f40 100644
--- a/ar.c
+++ b/ar.c
@@ -41,7 +41,7 @@ int
ar_name (name)
char *name;
{
- char *p = index (name, '('), *end = name + strlen (name) - 1;
+ char *p = strchr (name, '('), *end = name + strlen (name) - 1;
if (p == 0 || p == name || *end != ')')
return 0;
@@ -61,7 +61,7 @@ void
ar_parse_name (name, arname_p, memname_p)
char *name, **arname_p, **memname_p;
{
- char *p = index (name, '('), *end = name + strlen (name) - 1;
+ char *p = strchr (name, '('), *end = name + strlen (name) - 1;
if (arname_p != 0)
*arname_p = savestring (name, p - name);