Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ba98a42

Browse files
committed
Change the last PyErr_Format %s format to %.400s.
1 parent 55e9396 commit ba98a42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2386,7 +2386,7 @@ call_builtin(func, arg, kw)
23862386
Py_DECREF(call);
23872387
return res;
23882388
}
2389-
PyErr_Format(PyExc_TypeError, "call of non-function (type %s)",
2389+
PyErr_Format(PyExc_TypeError, "call of non-function (type %.400s)",
23902390
func->ob_type->tp_name);
23912391
return NULL;
23922392
}

0 commit comments

Comments
 (0)