Fix global read overrun error in MBConvTestCase

Use null-terminated copy of the input buffer to create the formatted
message instead of "multiBuffer" itself, which isn't.
This commit is contained in:
Ilya Sinitsyn 2020-10-19 15:46:17 +07:00 committed by Vadim Zeitlin
parent bea13d68c0
commit b95a79d74e

View File

@ -1147,7 +1147,7 @@ void MBConvTestCase::TestDecoder(
// make sure the correct output length was calculated // make sure the correct output length was calculated
WX_ASSERT_EQUAL_MESSAGE WX_ASSERT_EQUAL_MESSAGE
( (
("while converting \"%s\"", multiBuffer), ("while converting \"%s\"", inputCopy),
wideChars, wideChars,
outputWritten outputWritten
); );