Merge pull request #14073 from mogemimi/fix-compiler-warning

Fix -Wformat-security warning on Xcode
This commit is contained in:
pandamicro 2015-10-08 11:01:15 +08:00
commit c787e2c1b0
1 changed files with 1 additions and 1 deletions

View File

@ -615,7 +615,7 @@ Rect GLViewImpl::getScissorRect() const
void GLViewImpl::onGLFWError(int errorID, const char* errorDesc)
{
_glfwError = StringUtils::format("GLFWError #%d Happen, %s", errorID, errorDesc);
CCLOGERROR(_glfwError.c_str());
CCLOGERROR("%s", _glfwError.c_str());
}
void GLViewImpl::onGLFWMouseCallBack(GLFWwindow* window, int button, int action, int modify)