diff options
author | Matthew Hoops | 2010-10-25 00:16:38 +0000 |
---|---|---|
committer | Matthew Hoops | 2010-10-25 00:16:38 +0000 |
commit | 4f37c92602bcbad8e21bf4db5496cdabf197e7f7 (patch) | |
tree | e2c6103d2ade889cebfe8baa1dc5813f0021de06 /engines | |
parent | 0970cdf5e55a7dc52f8f2a3fd76421bdd33d6164 (diff) | |
download | scummvm-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')
-rw-r--r-- | engines/lastexpress/debug.cpp | 2 |
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]); } |