From e5e459943868f587da7e8cf075e4c6e2f74d97f3 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 5 Dec 2003 02:26:01 +0000 Subject: [PATCH] simplify --- stepmania/src/MsdFile.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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];