From 74e228688a37c7c9d688a69476238e1e9604c772 Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Sun, 25 Jan 2026 19:13:42 +0100 Subject: [PATCH] - Packed .c3l files without compressions weren't unpacked correctly. --- releasenotes.md | 1 + src/utils/unzipper.c | 1 + 2 files changed, 2 insertions(+) diff --git a/releasenotes.md b/releasenotes.md index 959b6187b..1e7935a66 100644 --- a/releasenotes.md +++ b/releasenotes.md @@ -130,6 +130,7 @@ - Bitstruct accidentally allowed other arrays than char arrays #2836 - Bitstruct as substruct fails to properly work with designated initializers. #2827 - Bug when initializing an inferred array with deep structure using designated init #2826 +- Packed .c3l files without compressions weren't unpacked correctly. ### Stdlib changes - Add `ThreadPool` join function to wait for all threads to finish in the pool without destroying the threads. diff --git a/src/utils/unzipper.c b/src/utils/unzipper.c index 4d9d95531..f3bf57f12 100644 --- a/src/utils/unzipper.c +++ b/src/utils/unzipper.c @@ -277,6 +277,7 @@ const char *zip_file_write(FILE *zip, ZipFile *file, const char *dir, bool overw } left_to_read -= written; } + fclose(f); return NULL; }