aboutsummaryrefslogtreecommitdiff
path: root/gdb/xcoffread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r--gdb/xcoffread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index 960d2d8..c6a138a 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -1627,7 +1627,7 @@ process_xcoff_symbol (cs, objfile)
/* FIXME: I believe this is to avoid a Sun-specific hack somewhere.
Needs more investigation. */
- if (*name == ':' || (pp = (char *) index (name, ':')) == NULL)
+ if (*name == ':' || (pp = (char *) strchr(name, ':')) == NULL)
return NULL;
++pp;