diff options
author | James Brown | 2002-03-10 17:33:04 +0000 |
---|---|---|
committer | James Brown | 2002-03-10 17:33:04 +0000 |
commit | 87ac8ae487a32f3e484846771b308bd548bc4814 (patch) | |
tree | c78be5f6357f3e3d91cfd7ecab0f5b7626419fa5 /insane.cpp | |
parent | 31dc24a037f9673441cf7a5295138b89c9d6d911 (diff) | |
download | scummvm-rg350-87ac8ae487a32f3e484846771b308bd548bc4814.tar.gz scummvm-rg350-87ac8ae487a32f3e484846771b308bd548bc4814.tar.bz2 scummvm-rg350-87ac8ae487a32f3e484846771b308bd548bc4814.zip |
Apply some patches by syke to prevent buffer overruns, etc.
svn-id: r3723
Diffstat (limited to 'insane.cpp')
-rw-r--r-- | insane.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/insane.cpp b/insane.cpp index 0f1fb0dda0..095714c007 100644 --- a/insane.cpp +++ b/insane.cpp @@ -594,7 +594,7 @@ void codec37_maketable(PersistentCodecData37 *pcd, int pitch, byte idx) { - assert(idx*255 + 254 < sizeof(maketable_bytes)/2); + assert(idx*255 + 254 < (int)(sizeof(maketable_bytes)/2)); @@ -618,7 +618,7 @@ void codec37(CodecData *cd, PersistentCodecData37 *pcd) { int src_pitch; - byte *src = cd->src, *curbuf; + byte *curbuf; uint size; |