diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-08-25 22:33:30 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-08-25 22:33:30 (GMT) |
commit | d640fe2af5095c8104a7cf850c2a669c8e864215 (patch) | |
tree | 04fbf97c7f008821c9999531a56bdebc319353d5 /Modules | |
parent | c020e7f8cb04ff81197501781e92a26fa4382135 (diff) | |
parent | 7c4a7e6f3cbd98ad547a3f1661582517612419e3 (diff) | |
download | cpython-d640fe2af5095c8104a7cf850c2a669c8e864215.zip cpython-d640fe2af5095c8104a7cf850c2a669c8e864215.tar.gz cpython-d640fe2af5095c8104a7cf850c2a669c8e864215.tar.bz2 |
#18803: merge with 3.3.
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 d89316a..75c1626 100644 --- a/Modules/unicodedata.c +++ b/Modules/unicodedata.c @@ -507,7 +507,7 @@ nfd_nfkd(PyObject *self, PyObject *input, int k) stackptr = 0; isize = PyUnicode_GET_LENGTH(input); - /* Overallocate atmost 10 characters. */ + /* Overallocate at most 10 characters. */ space = (isize > 10 ? 10 : isize) + isize; osize = space; output = PyMem_Malloc(space * sizeof(Py_UCS4)); |