Files
ftmemsim-valgrind/coregrind/m_libcprint.c
Philippe Waroquiers 6fc2200840 Fix vassert_fail producing random output for an empty format
vsnprintf does not do any addition to the buffer for an empty
format. So, buf was not null terminated.
This e.g. causes an assert_fail to output random characters
after the failed expression.
Fix by ensuring the buffer of vsnprintf is always null terminated
to start with.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13291
2013-02-26 21:54:28 +00:00

17 KiB