mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
Avoid buffer overrun in percentify call.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12322
This commit is contained in:
parent
a40eb02829
commit
225138a663
@ -955,7 +955,7 @@ static void gcSecVBitTable(void)
|
||||
secVBitTable = secVBitTable2;
|
||||
|
||||
if (VG_(clo_verbosity) > 1) {
|
||||
Char percbuf[6];
|
||||
Char percbuf[7];
|
||||
VG_(percentify)(n_survivors, n_nodes, 1, 6, percbuf);
|
||||
VG_(message)(Vg_DebugMsg, "memcheck GC: %d nodes, %d survivors (%s)\n",
|
||||
n_nodes, n_survivors, percbuf);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user