From 181b6b5bc814edc81f93abe59793bbb62cf5f8a0 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 22 Jul 2004 19:20:31 +0000 Subject: [PATCH] cleanup while trying to make sense of this code; (char*) sizeof(long)? what? --- stepmania/src/XmlFile.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/stepmania/src/XmlFile.cpp b/stepmania/src/XmlFile.cpp index 00c6e58c28..2178cee9af 100644 --- a/stepmania/src/XmlFile.cpp +++ b/stepmania/src/XmlFile.cpp @@ -72,12 +72,13 @@ char* _tcsechr( const char* psz, int ch, int escape ) // Coder Date Desc // bro 2002-10-29 //======================================================== -int _tcselen( int escape, char* srt, char* end = NULL ) +int _tcselen( int escape, const char *srt, const char *end ) { int len = 0; - char* pch = srt; - if( end==NULL ) end = (char*)sizeof(long); - char* prev_escape = NULL; + const char *pch = srt; + if( end==NULL ) + end = (char*) sizeof(long); + const char *prev_escape = NULL; while( pch && *pch && pch