]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* top.c (locate_arg): Call strchr not index.
authorJim Kingdon <jkingdon@engr.sgi.com>
Wed, 4 Jan 1995 17:46:40 +0000 (17:46 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Wed, 4 Jan 1995 17:46:40 +0000 (17:46 +0000)
gdb/ChangeLog
gdb/top.c

index 80dcb367cd0316f34586be58392d872d3b6d1cff..4bccb6dd999f0b53f6b969ce2f07bbce404ab10b 100644 (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.
index ce199b82165cd0e818d257950c22ed6e3236ec03..894e42e920608447c06a11e28ab3803cbfa44256 100644 (file)
--- 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;