From 7aec70c3952c76235c83e162069c24d89c7c52fc Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sat, 15 Oct 2005 06:26:53 +0000 Subject: Fixed a bug in the Kyra CD intro that caused ScummVM to crash when compiled with GCC 4. (The string buffer for the file name was too short, which caused a write to another variable's address to overwrite the terminating zero at the end of the string.) svn-id: r19093 --- kyra/resource.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'kyra/resource.cpp') diff --git a/kyra/resource.cpp b/kyra/resource.cpp index 3a86b945de..88f78b334d 100644 --- a/kyra/resource.cpp +++ b/kyra/resource.cpp @@ -159,8 +159,6 @@ uint8* Resource::fileData(const char* file, uint32* size) { buffer = new uint8[*size]; assert(buffer); - // TODO: maybe remove this again, this is only - // because I had problems when using gcc 4.0.1 const uint8 *from = start->_file->getFile(file); assert(from); -- cgit v1.2.3