diff options
-rw-r--r-- | engines/lab/resource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/lab/resource.cpp b/engines/lab/resource.cpp index 1b4bfd76a6..a0f635069e 100644 --- a/engines/lab/resource.cpp +++ b/engines/lab/resource.cpp @@ -310,7 +310,7 @@ Action *Resource::readAction(Common::File *file) { action->_param3 = file->readSint16LE(); if (action->_actionType == SHOWMESSAGES) { - char **messages = (char **)malloc(action->_param1 * 4); + char **messages = (char **)malloc(action->_param1 * sizeof(char *)); Common::String tmp; for (int i = 0; i < action->_param1; i++) { |