summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/_cursesmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index e6f5ef1..c22b500 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -1654,7 +1654,7 @@ PyCurses_EraseChar(PyObject *self, PyObject *args)
ch = erasechar();
- return PyString_FromString(&ch);
+ return PyString_FromStringAndSize(&ch, 1);
}
static PyObject *
@@ -2012,7 +2012,7 @@ PyCurses_KillChar(PyObject *self, PyObject *args)
ch = killchar();
- return PyString_FromString(&ch);
+ return PyString_FromStringAndSize(&ch, 1);
}
static PyObject *