diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2009-05-05 17:17:55 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2009-05-05 17:17:55 (GMT) |
commit | 4adbc34aaf29cef494ab8a92acfa63546f5d2a19 (patch) | |
tree | aa1aaad891bd5703b08a525ab955ff25b449c6db /Modules/posixmodule.c | |
parent | 25e218e381195b3682985ce30f197d933e076058 (diff) | |
download | cpython-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.c | 2 |
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 |