Commit e6fccb78 authored by Martin v. Löwis's avatar Martin v. Löwis

Fix off-by-one error.

parent a699f284
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment