From 7adecddbfcb92b201e2df49d304c22d21be8c3ca Mon Sep 17 00:00:00 2001 From: David Turner Date: Sun, 5 Dec 2010 21:52:42 +0000 Subject: HUGO: Remove Invalid Memory Read in getSound() - Size not defined until after function returns. svn-id: r54787 --- engines/hugo/file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/hugo') diff --git a/engines/hugo/file.cpp b/engines/hugo/file.cpp index 36d0f17beb..e168fb70b1 100644 --- a/engines/hugo/file.cpp +++ b/engines/hugo/file.cpp @@ -250,7 +250,7 @@ void FileManager::readImage(int objNum, object_t *objPtr) { * any allocated memory. Also returns size of data */ sound_pt FileManager::getSound(int16 sound, uint16 *size) { - debugC(1, kDebugFile, "getSound(%d, %d)", sound, *size); + debugC(1, kDebugFile, "getSound(%d)", sound); // No more to do if SILENCE (called for cleanup purposes) if (sound == _vm->_soundSilence) -- cgit v1.2.3