From 2f4be4e38ab0adc8ee6773e920754e7ea8c51e89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sat, 23 Nov 2002 17:11:06 +0000 Subject: Fix off-by-one error. --- Modules/unicodedata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c index 269ba57..330b376 100644 --- a/Modules/unicodedata.c +++ b/Modules/unicodedata.c @@ -326,7 +326,7 @@ _getucname(Py_UCS4 code, char* buffer, int buflen) int word; unsigned char* w; - if (SBase <= code && code <= SBase+SCount) { + if (SBase <= code && code < SBase+SCount) { /* Hangul syllable. */ int SIndex = code - SBase; int L = SIndex / NCount; -- cgit v0.12