From 55d110939d76e7860b2a313f6b20651c63070179 Mon Sep 17 00:00:00 2001
From: Cyrille Bagard <nocbos@gmail.com>
Date: Fri, 15 Dec 2023 20:20:41 +0100
Subject: Compute the right code for bytes when relying on byte frequencies.

---
 src/analysis/scan/patterns/backends/acism.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/analysis/scan/patterns/backends/acism.c b/src/analysis/scan/patterns/backends/acism.c
index 70e9a42..7c174d5 100644
--- a/src/analysis/scan/patterns/backends/acism.c
+++ b/src/analysis/scan/patterns/backends/acism.c
@@ -1187,7 +1187,7 @@ static void g_acism_backend_run_scan(const GAcismBackend *backend, GScanContext
     for (i = 0; i < dlen; i++)
     {
 #ifdef __USE_BYTE_FREQ
-        code = 1 + codes_for_bytes[data[i]];
+        code = codes_for_bytes[data[i]];
 #else
         code = 1 + data[i];
 #endif
-- 
cgit v0.11.2-87-g4458