summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2009-05-05 17:17:55 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2009-05-05 17:17:55 (GMT)
commit4adbc34aaf29cef494ab8a92acfa63546f5d2a19 (patch)
treeaa1aaad891bd5703b08a525ab955ff25b449c6db /Modules/posixmodule.c
parent25e218e381195b3682985ce30f197d933e076058 (diff)
downloadcpython-4adbc34aaf29cef494ab8a92acfa63546f5d2a19.zip
cpython-4adbc34aaf29cef494ab8a92acfa63546f5d2a19.tar.gz
cpython-4adbc34aaf29cef494ab8a92acfa63546f5d2a19.tar.bz2
Issue #5943: Fix lchflags crash.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 87ab2fa..2050d5a 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -1981,7 +1981,7 @@ posix_lchflags(PyObject *self, PyObject *args)
unsigned long flags;
int res;
if (!PyArg_ParseTuple(args, "O&k:lchflags",
- PyUnicode_FSConverter, &path, &flags))
+ PyUnicode_FSConverter, &opath, &flags))
return NULL;
path = bytes2str(opath, 1);
Py_BEGIN_ALLOW_THREADS