Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 198373 | Differences between
and this patch

Collapse All | Expand All

(-)Python-2.3.4-orig/Modules/_localemodule.c (-1 / +1 lines)
Lines 399-405 PyLocale_strxfrm(PyObject* self, PyObjec Link Here
399
    buf = PyMem_Malloc(n1);
399
    buf = PyMem_Malloc(n1);
400
    if (!buf)
400
    if (!buf)
401
        return PyErr_NoMemory();
401
        return PyErr_NoMemory();
402
    n2 = strxfrm(buf, s, n1);
402
    n2 = strxfrm(buf, s, n1) + 1;
403
    if (n2 > n1) {
403
    if (n2 > n1) {
404
        /* more space needed */
404
        /* more space needed */
405
        buf = PyMem_Realloc(buf, n2);
405
        buf = PyMem_Realloc(buf, n2);

Return to bug 198373