commit | 4adbc34aaf29cef494ab8a92acfa63546f5d2a19 | [log] [tgz] |
---|---|---|
author | Martin v. Löwis <martin@v.loewis.de> | Tue May 05 17:17:55 2009 +0000 |
committer | Martin v. Löwis <martin@v.loewis.de> | Tue May 05 17:17:55 2009 +0000 |
tree | aa1aaad891bd5703b08a525ab955ff25b449c6db | |
parent | 25e218e381195b3682985ce30f197d933e076058 [diff] |
Issue #5943: Fix lchflags crash.
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 @@ 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