From aad103c8d5ff2cb2673fca5e046787cc0b47863d Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 7 Feb 2013 22:24:45 +0000 Subject: [PATCH] Update DUMB to revision 1a9e0d4fd889dc9d17a5ebe97825be0cb2b7a273 - Added range checking for XM global volume command SVN r4074 (trunk) --- dumb/src/it/xmeffect.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dumb/src/it/xmeffect.c b/dumb/src/it/xmeffect.c index 2187a0b3f..f0f8820ff 100644 --- a/dumb/src/it/xmeffect.c +++ b/dumb/src/it/xmeffect.c @@ -167,6 +167,7 @@ if (log) printf(" - %2d %02X", effect, value); case XM_SET_GLOBAL_VOLUME: effect = IT_SET_GLOBAL_VOLUME; value *= 2; + if (value > 128) value = 128; break; case XM_KEY_OFF: