From d239a8911d0b4f78817df8fbabb9a2f9ef7e2539 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Mon, 21 Mar 2022 20:21:24 +0300 Subject: [PATCH] snd_umx.c (get_objtype): make sure that 'sig' array is initialized. --- Quake/snd_umx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Quake/snd_umx.c b/Quake/snd_umx.c index 6c632179..11bfbcd3 100644 --- a/Quake/snd_umx.c +++ b/Quake/snd_umx.c @@ -120,6 +120,7 @@ static int get_objtype (fshandle_t *f, int32_t ofs, int type) { char sig[16]; _retry: + memset(sig, 0, sizeof(sig)); FS_fseek(f, ofs, SEEK_SET); FS_fread(sig, 16, 1, f); if (type == UMUSIC_IT) {