diff --git a/stepmania/src/XmlFile.cpp b/stepmania/src/XmlFile.cpp index 178a9e1864..0a2943f758 100644 --- a/stepmania/src/XmlFile.cpp +++ b/stepmania/src/XmlFile.cpp @@ -251,7 +251,7 @@ char* XNode::LoadAttributes( const char* pszAttrs , LPPARSEINFO pi /*= &piDefaul pi->erorr_occur = true; pi->error_pointer = xml; pi->error_code = PIE_ATTR_NO_VALUE; - pi->error_string.Format( ("<%s> attribute has error "), name.c_str() ); + pi->error_string = ssprintf( ("<%s> attribute has error "), name.c_str() ); } return NULL; } @@ -386,7 +386,7 @@ char* XNode::Load( const char* pszXml, LPPARSEINFO pi /*= &piDefault*/ ) pi->erorr_occur = true; pi->error_pointer = xml; pi->error_code = PIE_NOT_CLOSED; - pi->error_string.Format(("%s must be closed with "), name.c_str() ); + pi->error_string = ssprintf( "%s must be closed with ", name.c_str(), name.c_str() ); } // error cos not exist CloseTag return NULL; @@ -440,7 +440,7 @@ char* XNode::Load( const char* pszXml, LPPARSEINFO pi /*= &piDefault*/ ) pi->erorr_occur = true; pi->error_pointer = xml; pi->error_code = PIE_NOT_CLOSED; - pi->error_string.Format(("it must be closed with "), name.c_str() ); + pi->error_string = ssprintf( "it must be closed with ", name.c_str() ); } // error return NULL; @@ -462,7 +462,7 @@ char* XNode::Load( const char* pszXml, LPPARSEINFO pi /*= &piDefault*/ ) pi->erorr_occur = true; pi->error_pointer = xml; pi->error_code = PIE_NOT_NESTED; - pi->error_string.Format(("'<%s> ... ' is not well-formed."), name.c_str(), closename.c_str() ); + pi->error_string = ssprintf( "'<%s> ... ' is not well-formed.", name.c_str(), closename.c_str() ); } return NULL; @@ -485,7 +485,7 @@ char* XNode::Load( const char* pszXml, LPPARSEINFO pi /*= &piDefault*/ ) pi->erorr_occur = true; pi->error_pointer = xml; pi->error_code = PIE_NOT_CLOSED; - pi->error_string.Format(("it must be closed with "), name.c_str() ); + pi->error_string = ssprintf( "it must be closed with ", name.c_str() ); } return NULL; }