From c4f281eba3f2b33bc0a7d7172c44f3d1237c09b3 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 11 Oct 2011 22:11:42 +0200 Subject: Fix misuse of PyUnicode_GET_SIZE, use PyUnicode_GET_LENGTH instead --- Python/formatter_unicode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/formatter_unicode.c') diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c index 037880068a..fda79fc657 100644 --- a/Python/formatter_unicode.c +++ b/Python/formatter_unicode.c @@ -693,7 +693,7 @@ format_string_internal(PyObject *value, const InternalFormatSpec *format) Py_ssize_t rpad; Py_ssize_t total; Py_ssize_t pos; - Py_ssize_t len = PyUnicode_GET_SIZE(value); + Py_ssize_t len = PyUnicode_GET_LENGTH(value); PyObject *result = NULL; int maxchar = 127; -- cgit v1.2.1