From 8f922a841799ed337586aa56ca8aa83c71140ef4 Mon Sep 17 00:00:00 2001 From: fixxxedpoint <42604451+fixxxedpoint@users.noreply.github.com> Date: Wed, 26 Nov 2025 21:27:49 +0100 Subject: [PATCH] review: explicit size of the zstd magic number array --- src/CardinalPlugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CardinalPlugin.cpp b/src/CardinalPlugin.cpp index eab38c3..65ab9a6 100644 --- a/src/CardinalPlugin.cpp +++ b/src/CardinalPlugin.cpp @@ -1104,7 +1104,7 @@ protected: rack::system::removeRecursively(fAutosavePath); rack::system::createDirectories(fAutosavePath); - static constexpr const uint8_t zstdMagic[] = { 0x28, 0xb5, 0x2f, 0xfd }; + static constexpr const uint8_t zstdMagic[4] = { 0x28, 0xb5, 0x2f, 0xfd }; if (std::memcmp(data.data(), zstdMagic, sizeof(zstdMagic)) != 0) {