diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 3fdaac9736f..fd8dc803cf5 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -658,7 +658,7 @@ builtin_map(self, args) if (! (sqp->sqf = sqp->seq->ob_type->tp_as_sequence)) { static char errmsg[] = "argument %d to map() must be a sequence object"; - char errbuf[sizeof(errmsg) + 3]; + char errbuf[sizeof(errmsg) + 25]; sprintf(errbuf, errmsg, i+2); PyErr_SetString(PyExc_TypeError, errbuf);