Kaydet (Commit) 5ae815af authored tarafından Jack Jansen's avatar Jack Jansen

Some buffers needed to be unsigned char, not char.

üst d940054a
......@@ -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[] = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment