summaryrefslogtreecommitdiffstats
path: root/Modules/pwdmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/pwdmodule.c')
-rw-r--r--Modules/pwdmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/pwdmodule.c b/Modules/pwdmodule.c
index 9e01f48..ea8c19c 100644
--- a/Modules/pwdmodule.c
+++ b/Modules/pwdmodule.c
@@ -46,10 +46,10 @@ static int initialized;
static PyTypeObject StructPwdType;
static void
-sets(PyObject *v, int i, char* val)
+sets(PyObject *v, int i, const char* val)
{
if (val)
- PyStructSequence_SET_ITEM(v, i, PyString_FromString(val));
+ PyStructSequence_SET_ITEM(v, i, PyUnicode_FromString(val));
else {
PyStructSequence_SET_ITEM(v, i, Py_None);
Py_INCREF(Py_None);