aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/top.c b/gdb/top.c
index ce199b8..894e42e 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -993,7 +993,7 @@ static char *
locate_arg (p)
char *p;
{
- while (p = index (p, '$'))
+ while (p = strchr (p, '$'))
{
if (strncmp (p, "$arg", 4) == 0 && isdigit (p[4]))
return p;