changeset 30281 | b1608535e50f |
parent 24424 | 2658d7834c6e |
child 46560 | 388aa8d67c80 |
--- a/hotspot/src/os/bsd/vm/decoder_machO.cpp Tue Apr 21 10:23:13 2015 +0200 +++ b/hotspot/src/os/bsd/vm/decoder_machO.cpp Tue Apr 07 14:19:03 2015 +0200 @@ -97,6 +97,7 @@ char * symname = mach_find_in_stringtable((char*) ((uintptr_t)mach_base + stroff), strsize, found_strx); if (symname) { strncpy(buf, symname, buflen); + buf[buflen - 1] = '\0'; return true; } DEBUG_ONLY(tty->print_cr("no string or null string found."));