Projects > cpp > Issues > Bug #4379

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

It should be sizeof(wszBuf)/sizeof(wszBuf[0]) but not sizeof(wszBuf) @ _log(..) in CCConsole.cpp

Bug #4379 [Closed]
liangXiao 2014-03-15 02:55 . Updated about 4 years ago

cocos2d-x 3.0beta2
File: CCConsole.cpp
Func: static void log(const char *format, valist args)


sizeof(wszBuf) ----> should be
sizeof(wszBuf) / sizeof(wszBuf[0]) or MAX_LOG_LENGTH ?

WideCharToMultiByte(CP_ACP, 0, wszBuf, sizeof(wszBuf), buf, sizeof(buf), NULL, FALSE); ---->
WideCharToMultiByte(CP_ACP, 0, wszBuf, -1, buf, sizeof(buf), NULL, FALSE);? 2014-10-08 02:46

Redmine issue system is closed, we are using github issue system instead.

This issue was moved to

Atom PDF

Start date:2014-03-15
Due date:
% Done:


Target version:-

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.