diff --git a/Python/getargs.c b/Python/getargs.c index a2ea4d7da45f83..c6c107a5c549fe 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -2571,7 +2571,7 @@ _PyArg_UnpackKeywordsWithVararg(PyObject *const *args, Py_ssize_t nargs, current_arg = NULL; } - buf[i + vararg + 1] = current_arg; + buf[i + 1] = current_arg; if (current_arg) { --nkwargs;