[Scummvm-cvs-logs] SF.net SVN: scummvm: [26938] scummvm/trunk/engines/agi/agi_v3.cpp
sev at users.sourceforge.net
sev at users.sourceforge.net
Sat May 26 17:14:26 CEST 2007
Revision: 26938
http://scummvm.svn.sourceforge.net/scummvm/?rev=26938&view=rev
Author: sev
Date: 2007-05-26 08:14:25 -0700 (Sat, 26 May 2007)
Log Message:
-----------
Fix potential memory overwrite
Modified Paths:
--------------
scummvm/trunk/engines/agi/agi_v3.cpp
Modified: scummvm/trunk/engines/agi/agi_v3.cpp
===================================================================
--- scummvm/trunk/engines/agi/agi_v3.cpp 2007-05-26 13:23:06 UTC (rev 26937)
+++ scummvm/trunk/engines/agi/agi_v3.cpp 2007-05-26 15:14:25 UTC (rev 26938)
@@ -62,6 +62,7 @@
f.toLowercase();
if (f.hasSuffix("vol.0")) {
+ memset(_vm->_game.name, 0, 8);
strncpy(_vm->_game.name, f.c_str(), f.size() > 5 ? f.size() - 5 : f.size());
debugC(3, kDebugLevelMain, "game.name = %s", _vm->_game.name);
_intVersion = 0x3149; // setup for 3.002.149
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