aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1995-01-04 17:46:40 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1995-01-04 17:46:40 +0000
commitfd2ae9ec28333c873b72c2366ff408e2b3569b70 (patch)
treefa249a22a1331d0e37d4b0a6965cbce3712fe849 /gdb/top.c
parent2d67c7e986e0502739a211e899573dee17f21346 (diff)
downloadgdb-fd2ae9ec28333c873b72c2366ff408e2b3569b70.zip
gdb-fd2ae9ec28333c873b72c2366ff408e2b3569b70.tar.gz
gdb-fd2ae9ec28333c873b72c2366ff408e2b3569b70.tar.bz2
* top.c (locate_arg): Call strchr not index.
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;