[Scummvm-cvs-logs] SF.net SVN: scummvm:[49356] scummvm/trunk/engines/tinsel/handle.cpp
tdhs at users.sourceforge.net
tdhs at users.sourceforge.net
Mon May 31 17:16:47 CEST 2010
Revision: 49356
http://scummvm.svn.sourceforge.net/scummvm/?rev=49356&view=rev
Author: tdhs
Date: 2010-05-31 15:16:46 +0000 (Mon, 31 May 2010)
Log Message:
-----------
Fix for DW2 engine abort with message "Cannot find file hienergy.sc!".
Bug introduced by r49086 change which could trim the last character of filenames.
Modified Paths:
--------------
scummvm/trunk/engines/tinsel/handle.cpp
Modified: scummvm/trunk/engines/tinsel/handle.cpp
===================================================================
--- scummvm/trunk/engines/tinsel/handle.cpp 2010-05-31 13:52:07 UTC (rev 49355)
+++ scummvm/trunk/engines/tinsel/handle.cpp 2010-05-31 15:16:46 UTC (rev 49356)
@@ -288,7 +288,7 @@
}
// extract and zero terminate the filename
- Common::strlcpy(szFilename, pH->szName, sizeof(pH->szName));
+ Common::strlcpy(szFilename, pH->szName, sizeof(pH->szName)+1);
if (f.open(szFilename)) {
// read the data
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list