From 456a70a7ba2531e5a874ed2ea8bb221d2c0921f0 Mon Sep 17 00:00:00 2001 From: byte Date: Sat, 24 Jan 2026 22:05:16 +0100 Subject: fixing out of bounds --- xs_unicode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xs_unicode.h b/xs_unicode.h index 7686dcd..493cfde 100644 --- a/xs_unicode.h +++ b/xs_unicode.h @@ -232,7 +232,7 @@ unsigned int *_xs_unicode_upper_search(unsigned int cpoint) /* searches for an uppercase codepoint in the case fold table */ { int b = 0; - int t = xs_countof(xs_unicode_case_fold_table) / 2 + 1; + int t = xs_countof(xs_unicode_case_fold_table) / 2 - 1; while (t >= b) { int n = (b + t) / 2; -- cgit v1.2.3