diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1995-01-04 17:46:40 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1995-01-04 17:46:40 +0000 |
commit | fd2ae9ec28333c873b72c2366ff408e2b3569b70 (patch) | |
tree | fa249a22a1331d0e37d4b0a6965cbce3712fe849 | |
parent | 2d67c7e986e0502739a211e899573dee17f21346 (diff) | |
download | gdb-fd2ae9ec28333c873b72c2366ff408e2b3569b70.zip gdb-fd2ae9ec28333c873b72c2366ff408e2b3569b70.tar.gz gdb-fd2ae9ec28333c873b72c2366ff408e2b3569b70.tar.bz2 |
* top.c (locate_arg): Call strchr not index.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/top.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 80dcb36..4bccb6d 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 <bothner@kalessin.cygnus.com> * ch-exp.y (literal): Recognize NULL. @@ -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; |