aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2003-03-07 23:55:28 +0000
committerMax Horn2003-03-07 23:55:28 +0000
commitc4a9aec0837e62c592d12e82f6f047cdaf0a79b8 (patch)
tree3cd3ba91d7f9041538a64c9bb00f7092835573dc /scumm
parentb484c7a6bc0d2093341c3dde99d28d3eacbda76c (diff)
downloadscummvm-rg350-c4a9aec0837e62c592d12e82f6f047cdaf0a79b8.tar.gz
scummvm-rg350-c4a9aec0837e62c592d12e82f6f047cdaf0a79b8.tar.bz2
scummvm-rg350-c4a9aec0837e62c592d12e82f6f047cdaf0a79b8.zip
possible fix for a valgrind issue
svn-id: r6759
Diffstat (limited to 'scumm')
-rw-r--r--scumm/string.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/string.cpp b/scumm/string.cpp
index 458204f433..14a14f722e 100644
--- a/scumm/string.cpp
+++ b/scumm/string.cpp
@@ -825,7 +825,7 @@ void Scumm::loadLanguageBundle() {
}
size = file.size();
- _languageBuffer = (char *)malloc(size);
+ _languageBuffer = (char *)calloc(1, size+1);
file.read(_languageBuffer, size);
file.close();