summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2020-04-21 13:30:02 +0200
committerStefan Behnel <stefan_ml@behnel.de>2020-04-21 13:30:02 +0200
commit59de323f70e659761db810bd5c51aad23c7ec96b (patch)
tree0f218f43825ba6ea93bab708b64d8e025fd3c324
parent44889e7921446018cabdd650f146d9c2ab75e958 (diff)
downloadcython-59de323f70e659761db810bd5c51aad23c7ec96b.tar.gz
Safety fix in Py2 fallback code.
-rw-r--r--Cython/Utility/ObjectHandling.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Utility/ObjectHandling.c b/Cython/Utility/ObjectHandling.c
index 94230fd25..08985e49c 100644
--- a/Cython/Utility/ObjectHandling.c
+++ b/Cython/Utility/ObjectHandling.c
@@ -1102,7 +1102,7 @@ static int __Pyx_SetNamesPEP487(PyObject *type_obj) {
"in '%.100s'",
Py_TYPE(value)->tp_name, key, type->tp_name);
#else
- "Error calling __set_name__ on '%.100s' instance %s "
+ "Error calling __set_name__ on '%.100s' instance %.100s "
"in '%.100s'",
Py_TYPE(value)->tp_name, PyString_Check(key) ? PyString_AS_STRING(key) : "?", type->tp_name);
#endif