Issue #5943: Fix lchflags crash.

This commit is contained in:
Martin v. Löwis 2009-05-05 17:17:55 +00:00
parent 25e218e381
commit 4adbc34aaf
1 changed files with 1 additions and 1 deletions

View File

@ -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