diff options
author | Max Horn | 2003-01-15 03:10:28 +0000 |
---|---|---|
committer | Max Horn | 2003-01-15 03:10:28 +0000 |
commit | b1c570aa6ec368f22249dae0cb9baf2848ced8d1 (patch) | |
tree | e4eca2f97352259cb496f0f2c47ee2733ad076d2 /scumm/bundle.cpp | |
parent | 5a180bbea9dc15175515dc9eb79b8374c7a33e23 (diff) | |
download | scummvm-rg350-b1c570aa6ec368f22249dae0cb9baf2848ced8d1.tar.gz scummvm-rg350-b1c570aa6ec368f22249dae0cb9baf2848ced8d1.tar.bz2 scummvm-rg350-b1c570aa6ec368f22249dae0cb9baf2848ced8d1.zip |
made NUT font rendered honor _ignoreCharsetMask
svn-id: r6466
Diffstat (limited to 'scumm/bundle.cpp')
-rw-r--r-- | scumm/bundle.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scumm/bundle.cpp b/scumm/bundle.cpp index 9a03938af5..5adb33ac81 100644 --- a/scumm/bundle.cpp +++ b/scumm/bundle.cpp @@ -280,7 +280,8 @@ int32 Bundle::decompressVoiceSampleByIndex(int32 index, byte *comp_final, int32 output_size = decompressCodec(_compVoiceTable[i].codec, comp_input, comp_output, _compVoiceTable[i].size, i, channels); - memcpy((byte *)&comp_final[final_size], comp_output, output_size); + assert(output_size <= 10000); + memcpy(comp_final + final_size, comp_output, output_size); final_size += output_size; free(comp_input); |