mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Fix off-by-one error.
This commit is contained in:
parent
ca2953ea5c
commit
2f4be4e38a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue