summaryrefslogtreecommitdiff
path: root/src/analysis/scan/patterns/backends
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-12-15 19:20:41 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-12-15 19:20:41 (GMT)
commit55d110939d76e7860b2a313f6b20651c63070179 (patch)
tree913bca1aab2f4a6bc363ce4d4fd7c6c99364eed0 /src/analysis/scan/patterns/backends
parent0d5c48ea75a88ae03a7ee8b11c7cf29cb6c46c1b (diff)
Compute the right code for bytes when relying on byte frequencies.
Diffstat (limited to 'src/analysis/scan/patterns/backends')
-rw-r--r--src/analysis/scan/patterns/backends/acism.c2
1 files changed, 1 insertions, 1 deletions
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