From: Victor Stinner Date: Thu, 4 Oct 2012 00:43:02 +0000 (+0200) Subject: long_to_decimal_string_internal() doesn't need to write the final NULL character X-Git-Tag: v3.4.0a1~2389 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9cc98c93a7f65b728431ed8439af86c36edc5e0c;p=python long_to_decimal_string_internal() doesn't need to write the final NULL character --- diff --git a/Objects/longobject.c b/Objects/longobject.c index 73413dd5af..24cf1a5f8f 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -1651,7 +1651,6 @@ long_to_decimal_string_internal(PyObject *aa, else \ p = (TYPE*)PyUnicode_DATA(str) + strlen; \ \ - *p = '\0'; \ /* pout[0] through pout[size-2] contribute exactly \ _PyLong_DECIMAL_SHIFT digits each */ \ for (i=0; i < size - 1; i++) { \