comparison src/share/tools/hsdis/hsdis.c @ 4938:de34c646c3f7

7140985: HSDIS does not handle caller options correctly Summary: Fix typo. Reviewed-by: jrose, kvn Contributed-by: Andrew Haley <aph@redhat.com>
author kvn
date Fri, 10 Feb 2012 17:20:05 -0800
parents 1d1603768966
children 5a98bf7d847b
comparison
equal deleted inserted replaced
4937:73df3733f2eb 4938:de34c646c3f7
354 size_t mach_size = sizeof(app_data->mach_option); 354 size_t mach_size = sizeof(app_data->mach_option);
355 mach_size -= 1; /*leave room for the null*/ 355 mach_size -= 1; /*leave room for the null*/
356 if (plen > mach_size) plen = mach_size; 356 if (plen > mach_size) plen = mach_size;
357 strncpy(mach_option, p, plen); 357 strncpy(mach_option, p, plen);
358 mach_option[plen] = '\0'; 358 mach_option[plen] = '\0';
359 } else if (plen > 6 && strncmp(p, "hsdis-", 6)) { 359 } else if (plen > 6 && strncmp(p, "hsdis-", 6) == 0) {
360 // do not pass these to the next level 360 // do not pass these to the next level
361 } else { 361 } else {
362 /* just copy it; {i386,sparc}-dis.c might like to see it */ 362 /* just copy it; {i386,sparc}-dis.c might like to see it */
363 if (iop > iop_base && iop < iop_limit) (*iop++) = ','; 363 if (iop > iop_base && iop < iop_limit) (*iop++) = ',';
364 if (iop + plen > iop_limit) 364 if (iop + plen > iop_limit)