From: Jim Kingdon Date: Wed, 4 Jan 1995 17:46:40 +0000 (+0000) Subject: * top.c (locate_arg): Call strchr not index. X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=fd2ae9ec28333c873b72c2366ff408e2b3569b70;hp=2d67c7e986e0502739a211e899573dee17f21346;p=deliverable%2Fbinutils-gdb.git * top.c (locate_arg): Call strchr not index. --- 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;