[Scummvm-cvs-logs] SF.net SVN: scummvm:[53783] scummvm/trunk/engines/lastexpress/debug.cpp
mthreepwood at users.sourceforge.net
mthreepwood at users.sourceforge.net
Mon Oct 25 02:16:38 CEST 2010
Revision: 53783
http://scummvm.svn.sourceforge.net/scummvm/?rev=53783&view=rev
Author: mthreepwood
Date: 2010-10-25 00:16:38 +0000 (Mon, 25 Oct 2010)
Log Message:
-----------
LASTEXPRESS: Don't use NULL in arithmetic
Modified Paths:
--------------
scummvm/trunk/engines/lastexpress/debug.cpp
Modified: scummvm/trunk/engines/lastexpress/debug.cpp
===================================================================
--- scummvm/trunk/engines/lastexpress/debug.cpp 2010-10-24 22:52:57 UTC (rev 53782)
+++ scummvm/trunk/engines/lastexpress/debug.cpp 2010-10-25 00:16:38 UTC (rev 53783)
@@ -137,7 +137,7 @@
for (int i = 0; i < _numParams; i++) {
_commandParams[i] = (char *)malloc(strlen(argv[i]) + 1);
- memset(_commandParams[i], NULL, strlen(argv[i]) + 1);
+ memset(_commandParams[i], 0, strlen(argv[i]) + 1);
strcpy(_commandParams[i], argv[i]);
}
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