diff --git a/stepmania/src/XmlFile.cpp b/stepmania/src/XmlFile.cpp index 2178cee9af..6f232f6962 100644 --- a/stepmania/src/XmlFile.cpp +++ b/stepmania/src/XmlFile.cpp @@ -72,23 +72,22 @@ char* _tcsechr( const char* psz, int ch, int escape ) // Coder Date Desc // bro 2002-10-29 //======================================================== -int _tcselen( int escape, const char *srt, const char *end ) +int _tcselen( int escape, const char *start, const char *end ) { int len = 0; - const char *pch = srt; - if( end==NULL ) + if( end == NULL ) end = (char*) sizeof(long); const char *prev_escape = NULL; - while( pch && *pch && pchGetBufferSetLength( len ); char* szTemp = new char[len]; - strlen( szTemp, escape, psz, end ); + unescape( szTemp, escape, psz, end ); *ps = szTemp; delete [] szTemp; }