summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-02-26 21:36:19 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-02-26 21:36:19 (GMT)
commit5ae815af999ce284fac06a0c92f5ef32ed423681 (patch)
tree8f7372357eef04c283dbe7c6c49b6e86e9f0bca8 /Mac
parentd940054ad4bcd39e31f6e22d0fd6f674ec4a99b3 (diff)
downloadcpython-5ae815af999ce284fac06a0c92f5ef32ed423681.zip
cpython-5ae815af999ce284fac06a0c92f5ef32ed423681.tar.gz
cpython-5ae815af999ce284fac06a0c92f5ef32ed423681.tar.bz2
Some buffers needed to be unsigned char, not char.
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Modules/macfsmodule.c4
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[] = {