aboutsummaryrefslogtreecommitdiff
path: root/engines/lastexpress
diff options
context:
space:
mode:
authorMatthew Hoops2010-10-25 00:16:38 +0000
committerMatthew Hoops2010-10-25 00:16:38 +0000
commit4f37c92602bcbad8e21bf4db5496cdabf197e7f7 (patch)
treee2c6103d2ade889cebfe8baa1dc5813f0021de06 /engines/lastexpress
parent0970cdf5e55a7dc52f8f2a3fd76421bdd33d6164 (diff)
downloadscummvm-rg350-4f37c92602bcbad8e21bf4db5496cdabf197e7f7.tar.gz
scummvm-rg350-4f37c92602bcbad8e21bf4db5496cdabf197e7f7.tar.bz2
scummvm-rg350-4f37c92602bcbad8e21bf4db5496cdabf197e7f7.zip
LASTEXPRESS: Don't use NULL in arithmetic
svn-id: r53783
Diffstat (limited to 'engines/lastexpress')
-rw-r--r--engines/lastexpress/debug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/lastexpress/debug.cpp b/engines/lastexpress/debug.cpp
index b32c49dc33..6e561aa3d6 100644
--- a/engines/lastexpress/debug.cpp
+++ b/engines/lastexpress/debug.cpp
@@ -137,7 +137,7 @@ void Debugger::copyCommand(int argc, const char **argv) {
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]);
}