diff options
author | Max Horn | 2003-03-07 23:55:28 +0000 |
---|---|---|
committer | Max Horn | 2003-03-07 23:55:28 +0000 |
commit | c4a9aec0837e62c592d12e82f6f047cdaf0a79b8 (patch) | |
tree | 3cd3ba91d7f9041538a64c9bb00f7092835573dc /scumm | |
parent | b484c7a6bc0d2093341c3dde99d28d3eacbda76c (diff) | |
download | scummvm-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.cpp | 2 |
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(); |