diff options
author | Strangerke | 2015-12-20 15:08:27 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-23 21:35:31 +0100 |
commit | a41f9076c597714075b0ecd5f41cd6f6cfd2add2 (patch) | |
tree | 041ed81fa3fe449ddf29a42392194173791ab2d6 | |
parent | a4266d2109d2c7e121d3a69b06bfa29436edcb39 (diff) | |
download | scummvm-rg350-a41f9076c597714075b0ecd5f41cd6f6cfd2add2.tar.gz scummvm-rg350-a41f9076c597714075b0ecd5f41cd6f6cfd2add2.tar.bz2 scummvm-rg350-a41f9076c597714075b0ecd5f41cd6f6cfd2add2.zip |
LAB: Fix malloc pointed by eriktorbjorn
-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++) { |