summaryrefslogtreecommitdiffstats
path: root/Modules/_cursesmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-10-11 20:11:42 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-10-11 20:11:42 (GMT)
commitc4f281eba3f2b33bc0a7d7172c44f3d1237c09b3 (patch)
tree6fb8eb484f53393c9b3fa2f6aa8a00d9c62c2135 /Modules/_cursesmodule.c
parented2682be2f6de05ead5f777ed3aaee92180df4f9 (diff)
downloadcpython-c4f281eba3f2b33bc0a7d7172c44f3d1237c09b3.zip
cpython-c4f281eba3f2b33bc0a7d7172c44f3d1237c09b3.tar.gz
cpython-c4f281eba3f2b33bc0a7d7172c44f3d1237c09b3.tar.bz2
Fix misuse of PyUnicode_GET_SIZE, use PyUnicode_GET_LENGTH instead
Diffstat (limited to 'Modules/_cursesmodule.c')
-rw-r--r--Modules/_cursesmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index ead38d3..7c89acc 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -2719,7 +2719,7 @@ PyCurses_ConvertToWchar_t(PyObject *obj,
PyErr_Format(PyExc_TypeError,
"expect bytes or str of length 1, or int, "
"got a str of length %zi",
- PyUnicode_GET_SIZE(obj));
+ PyUnicode_GET_LENGTH(obj));
return 0;
}
*wch = buffer[0];