* top.c (locate_arg): Call strchr not index.

This commit is contained in:
Jim Kingdon 1995-01-04 17:46:40 +00:00
parent 2d67c7e986
commit fd2ae9ec28
2 changed files with 5 additions and 1 deletions

View File

@ -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 <bothner@kalessin.cygnus.com>
* ch-exp.y (literal): Recognize NULL.

View File

@ -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;