From 4f37c92602bcbad8e21bf4db5496cdabf197e7f7 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Mon, 25 Oct 2010 00:16:38 +0000 Subject: LASTEXPRESS: Don't use NULL in arithmetic svn-id: r53783 --- engines/lastexpress/debug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/lastexpress') 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]); } -- cgit v1.2.3