mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-12 06:11:37 +00:00
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
17 KiB
17 KiB