Some buffers needed to be unsigned char, not char.

This commit is contained in:
Jack Jansen 2002-02-26 21:36:19 +00:00
parent d940054ad4
commit 5ae815af99
1 changed files with 2 additions and 2 deletions

View File

@ -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[] = {