diff --git a/cocos2dx/misc_nodes/CCRibbon.cpp b/cocos2dx/misc_nodes/CCRibbon.cpp index da3c274de2..54e5714d15 100644 --- a/cocos2dx/misc_nodes/CCRibbon.cpp +++ b/cocos2dx/misc_nodes/CCRibbon.cpp @@ -328,7 +328,7 @@ namespace cocos2d { char * CCRibbonSegment::description() { char *ret = new char[100] ; - sprintf_s(ret, 100, "", m_uEnd, m_uBegin); + sprintf(ret, "", m_uEnd, m_uBegin); return ret; } CCRibbonSegment::~CCRibbonSegment()