diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-11-23 17:11:06 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-11-23 17:11:06 (GMT) |
commit | 2f4be4e38ab0adc8ee6773e920754e7ea8c51e89 (patch) | |
tree | 0aa69ebf072a5d1cfa90026e6e11ecf720a28ecc /Modules | |
parent | ca2953ea5cb0128b2579e956dec40da40e06d0be (diff) | |
download | cpython-2f4be4e38ab0adc8ee6773e920754e7ea8c51e89.zip cpython-2f4be4e38ab0adc8ee6773e920754e7ea8c51e89.tar.gz cpython-2f4be4e38ab0adc8ee6773e920754e7ea8c51e89.tar.bz2 |
Fix off-by-one error.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/unicodedata.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |