diff options
Diffstat (limited to 'Mac/Modules')
-rw-r--r-- | Mac/Modules/macfsmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Modules/macfsmodule.c b/Mac/Modules/macfsmodule.c index b00f5dd..9179c36 100644 --- a/Mac/Modules/macfsmodule.c +++ b/Mac/Modules/macfsmodule.c @@ -776,7 +776,7 @@ mfsr_as_fsspec(mfsrobject *self, PyObject *args) static PyObject * mfsr_as_pathname(mfsrobject *self, PyObject *args) { - char strbuf[PATHNAMELEN]; + unsigned char strbuf[PATHNAMELEN]; OSStatus err; if (!PyArg_ParseTuple(args, "")) @@ -786,7 +786,7 @@ mfsr_as_pathname(mfsrobject *self, PyObject *args) PyErr_Mac(ErrorObject, err); return NULL; } - return PyString_FromString(strbuf); + return PyString_FromString((char *)strbuf); } static struct PyMethodDef mfsr_methods[] = { |