Fix bug in wxMBConv_cf::FromWChar() in OS X.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 28 Mar 2010 22:39:39 +0000 (22:39 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 28 Mar 2010 22:39:39 +0000 (22:39 +0000)
commiteb087029329fab4b9d4d956b525eba752ee8d5e3
treeb32db8dacfa9678eb0b64c80a5d0d4a78cb0b05c
parentd16ba4644a175411cf43ac5a5fab60e70d2260b8
Fix bug in wxMBConv_cf::FromWChar() in OS X.

Apparently CFStringGetBytes() doesn't always behave as expected, work around
this by checking that the returned buffer size is not greater than the size we
passed in.

Closes #11859.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63772 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/osx/core/strconv_cf.cpp