Avoid buffer overrun in percentify call.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12322
This commit is contained in:
Philippe Waroquiers 2011-12-27 18:43:32 +00:00
parent a40eb02829
commit 225138a663

View File

@ -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);