7140985: HSDIS does not handle caller options correctly

Fri, 10 Feb 2012 17:20:05 -0800

author
kvn
date
Fri, 10 Feb 2012 17:20:05 -0800
changeset 3565
de34c646c3f7
parent 3564
73df3733f2eb
child 3566
45a1bf98f1bb

7140985: HSDIS does not handle caller options correctly
Summary: Fix typo.
Reviewed-by: jrose, kvn
Contributed-by: Andrew Haley <aph@redhat.com>

src/share/tools/hsdis/hsdis.c file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/tools/hsdis/hsdis.c	Fri Feb 10 12:53:43 2012 -0800
     1.2 +++ b/src/share/tools/hsdis/hsdis.c	Fri Feb 10 17:20:05 2012 -0800
     1.3 @@ -356,7 +356,7 @@
     1.4        if (plen > mach_size)  plen = mach_size;
     1.5        strncpy(mach_option, p, plen);
     1.6        mach_option[plen] = '\0';
     1.7 -    } else if (plen > 6 && strncmp(p, "hsdis-", 6)) {
     1.8 +    } else if (plen > 6 && strncmp(p, "hsdis-", 6) == 0) {
     1.9        // do not pass these to the next level
    1.10      } else {
    1.11        /* just copy it; {i386,sparc}-dis.c might like to see it  */

mercurial