Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2f4be4e

Browse files
committed
Fix off-by-one error.
1 parent ca2953e commit 2f4be4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/unicodedata.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ _getucname(Py_UCS4 code, char* buffer, int buflen)
326326
int word;
327327
unsigned char* w;
328328

329-
if (SBase <= code && code <= SBase+SCount) {
329+
if (SBase <= code && code < SBase+SCount) {
330330
/* Hangul syllable. */
331331
int SIndex = code - SBase;
332332
int L = SIndex / NCount;

0 commit comments

Comments
 (0)