diff --git a/cocos2dx/textures/CCTexture2D.cpp b/cocos2dx/textures/CCTexture2D.cpp index 56c57f900f..23d09e7c1f 100644 --- a/cocos2dx/textures/CCTexture2D.cpp +++ b/cocos2dx/textures/CCTexture2D.cpp @@ -177,7 +177,7 @@ CCTexture2D * CCTexture2D::initWithData(const void *data, CCTexture2DPixelFormat char * CCTexture2D::description(void) { char *ret = new char[100]; - sprintf_s(ret, 100, "", m_uName, m_uPixelsWide, m_uPixelsHigh, m_fMaxS, m_fMaxT); + sprintf(ret, "", m_uName, m_uPixelsWide, m_uPixelsHigh, m_fMaxS, m_fMaxT); return ret; }