From 807301c9be6d70efb19364274aae43a8e7f5c931 Mon Sep 17 00:00:00 2001 From: scemino Date: Tue, 14 Dec 2021 14:03:32 +0100 Subject: [PATCH] pre2: Fix crash in unpack --- p2/unpack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2/unpack.c b/p2/unpack.c index a4a5228..790a8a5 100644 --- a/p2/unpack.c +++ b/p2/unpack.c @@ -327,7 +327,7 @@ uint8_t *unpack(FILE *in, int *uncompressed_size) { const uint16_t sig = fread_le16(in); fseek(in, 0, SEEK_SET); if (sig == 0x4CB4) { - memset(&uneat, 0, sizeof(unsqz)); + memset(&uneat, 0, sizeof(uneat)); *uncompressed_size = unpack_eat(in, &uneat); return uneat.dst; } else if ((sig >> 8) == 0x10) {