[Scummvm-cvs-logs] SF.net SVN: scummvm: [29402] scummvm/trunk/engines/cine/main_loop.cpp
cyx at users.sourceforge.net
cyx at users.sourceforge.net
Sun Nov 4 04:16:56 CET 2007
Revision: 29402
http://scummvm.svn.sourceforge.net/scummvm/?rev=29402&view=rev
Author: cyx
Date: 2007-11-03 20:16:56 -0700 (Sat, 03 Nov 2007)
Log Message:
-----------
fix buffer overflow (globalVars is int16 -> index/=2)
Modified Paths:
--------------
scummvm/trunk/engines/cine/main_loop.cpp
Modified: scummvm/trunk/engines/cine/main_loop.cpp
===================================================================
--- scummvm/trunk/engines/cine/main_loop.cpp 2007-11-04 03:07:03 UTC (rev 29401)
+++ scummvm/trunk/engines/cine/main_loop.cpp 2007-11-04 03:16:56 UTC (rev 29402)
@@ -228,8 +228,8 @@
playerCommand = -1;
strcpy(commandBuffer, "");
- globalVars[0x1F2] = 0;
- globalVars[0x1F4] = 0;
+ globalVars[VAR_MOUSE_X_POS] = 0;
+ globalVars[VAR_MOUSE_Y_POS] = 0;
for (i = 0; i < 16; i++) {
c_palette[i] = 0;
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