- fix long string will be cut off by function “cc_utf8_to_utf16” ( “cc_utf8_strlen” returns long )

This commit is contained in:
BoydTang 2014-01-13 22:54:26 +08:00
parent cc55be4f1a
commit 565288f587
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ cc_utf8_get_char (const char * p)
unsigned short* cc_utf8_to_utf16(const char* str_old, int length/* = -1 */, int* rUtf16Size/* = nullptr */)
{
unsigned short len = cc_utf8_strlen(str_old, length);
long len = cc_utf8_strlen(str_old, length);
if (rUtf16Size != nullptr) {
*rUtf16Size = len;
}