diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index a89c22bafa7..f8c268ecfa5 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -2545,7 +2545,7 @@ PyCurses_tigetflag(PyObject *self, PyObject *args) PyCursesSetupTermCalled; - if (!PyArg_ParseTuple(args, "z", &capname)) + if (!PyArg_ParseTuple(args, "s", &capname)) return NULL; return PyLong_FromLong( (long) tigetflag( capname ) ); @@ -2558,7 +2558,7 @@ PyCurses_tigetnum(PyObject *self, PyObject *args) PyCursesSetupTermCalled; - if (!PyArg_ParseTuple(args, "z", &capname)) + if (!PyArg_ParseTuple(args, "s", &capname)) return NULL; return PyLong_FromLong( (long) tigetnum( capname ) ); @@ -2571,7 +2571,7 @@ PyCurses_tigetstr(PyObject *self, PyObject *args) PyCursesSetupTermCalled; - if (!PyArg_ParseTuple(args, "z", &capname)) + if (!PyArg_ParseTuple(args, "s", &capname)) return NULL; capname = tigetstr( capname );