X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e27a15e1468268204eae0c4299ecb1ae789e0881..75b324211c094aea8373e3e6b7846e78b7befb89:/src/common/strconv.cpp diff --git a/src/common/strconv.cpp b/src/common/strconv.cpp index 4e610d300c..3f00282a39 100644 --- a/src/common/strconv.cpp +++ b/src/common/strconv.cpp @@ -150,7 +150,8 @@ static size_t decode_utf16(const wxUint16* input, wxUint32& output) static wxUint32 wxDecodeSurrogate(const wxDecodeSurrogate_t **pSrc) { wxUint32 out; - const size_t n = decode_utf16(wx_reinterpret_cast(wxUint16 *, *pSrc), out); + const size_t + n = decode_utf16(wx_reinterpret_cast(const wxUint16 *, *pSrc), out); if ( n == wxCONV_FAILED ) *pSrc = NULL; else @@ -2759,7 +2760,7 @@ public: { OSStatus status = noErr ; ByteCount byteOutLen ; - ByteCount byteInLen = strlen(psz) ; + ByteCount byteInLen = strlen(psz) + 1; wchar_t *tbuf = NULL ; UniChar* ubuf = NULL ; size_t res = 0 ;