Browse Source

review: explicit size of the zstd magic number array

pull/871/head
fixxxedpoint 2 months ago
parent
commit
8f922a8417
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/CardinalPlugin.cpp

+ 1
- 1
src/CardinalPlugin.cpp View File

@@ -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)
{


Loading…
Cancel
Save