mirror of https://github.com/python/cpython
Some buffers needed to be unsigned char, not char.
This commit is contained in:
parent
d940054ad4
commit
5ae815af99
|
@ -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[] = {
|
||||
|
|
Loading…
Reference in New Issue