diff --git a/stepmania/src/MsdFile.cpp b/stepmania/src/MsdFile.cpp index 5dc69ce10e..b3f0ee4d28 100644 --- a/stepmania/src/MsdFile.cpp +++ b/stepmania/src/MsdFile.cpp @@ -143,8 +143,7 @@ bool MsdFile::ReadFile( CString sNewPath ) return false; } - /* XXX: f.GetFileSizeInBytes() */ - int iBufferSize = GetFileSizeInBytes(sNewPath); + const int iBufferSize = f.GetFileSize(); // allocate a string to hold the file char* szFileString = new char[iBufferSize];