Correctly convert wxPrintf() to a buffer even when it doesn't fit.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 30 Sep 2010 14:30:41 +0000 (14:30 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 30 Sep 2010 14:30:41 +0000 (14:30 +0000)
commit0e555c213ddf1fa155a170f56bc13bc0d38fa412
treeb5cde577c8e27f621d94eeb22057b13bfa57ac54
parent37513b6715f79de70b8bfa9791fedb1b3c3b9931
Correctly convert wxPrintf() to a buffer even when it doesn't fit.

ConvertStringToBuf() helper function was defined incorrectly for converting
wxString to a char* buffer as it didn't fill the buffer at all if the string
didn't fit into it entirely instead of putting as much of the string into it
as possible as was already done for the conversion to wchar_t* buffer. This
broke wxSprintf()-related functions in when the ASCII output buffer was not
big enough as it was not filled at all.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65691 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/wxcrt.cpp