no need to nul termiante this buffer

This commit is contained in:
Glenn Maynard
2003-09-23 04:46:01 +00:00
parent 286d20b818
commit 0d48725961
+1 -2
View File
@@ -145,7 +145,7 @@ bool MsdFile::ReadFile( CString sNewPath )
return false;
}
int iBufferSize = GetFileSizeInBytes(sNewPath) + 1000; // +1000 because sometimes the bytes read is > filelength. Why?
int iBufferSize = GetFileSizeInBytes(sNewPath);
// allocate a string to hold the file
char* szFileString = new char[iBufferSize];
@@ -154,7 +154,6 @@ bool MsdFile::ReadFile( CString sNewPath )
close( fd );
ASSERT( iBufferSize > iBytesRead );
szFileString[iBytesRead] = '\0';
ReadBuf(szFileString, iBytesRead);