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:
parent
bea13d68c0
commit
b95a79d74e
@ -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
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user