Fix off-by-one error.

This commit is contained in:
Martin v. Löwis 2002-11-23 17:11:06 +00:00
parent ca2953ea5c
commit 2f4be4e38a
1 changed files with 1 additions and 1 deletions

View File

@ -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;