From fd2ae9ec28333c873b72c2366ff408e2b3569b70 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Wed, 4 Jan 1995 17:46:40 +0000 Subject: [PATCH] * top.c (locate_arg): Call strchr not index. --- gdb/ChangeLog | 4 ++++ gdb/top.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 80dcb367cd..4bccb6dd99 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Wed Jan 4 09:18:27 1995 Jim Kingdon (kingdon@lioth.cygnus.com) + + * top.c (locate_arg): Call strchr not index. + Tue Jan 3 16:52:03 1995 Per Bothner * ch-exp.y (literal): Recognize NULL. diff --git a/gdb/top.c b/gdb/top.c index ce199b8216..894e42e920 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; -- 2.34.1