From ba98a42a0f08ada3dc311536815136d7fd960d15 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 15 Nov 1999 19:29:33 +0000 Subject: Change the last PyErr_Format %s format to %.400s. --- Python/ceval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/ceval.c b/Python/ceval.c index fe2e0a2..1770dc8 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -2386,7 +2386,7 @@ call_builtin(func, arg, kw) Py_DECREF(call); return res; } - PyErr_Format(PyExc_TypeError, "call of non-function (type %s)", + PyErr_Format(PyExc_TypeError, "call of non-function (type %.400s)", func->ob_type->tp_name); return NULL; } -- cgit v0.12