[Python-checkins] r72340 - python/branches/py3k/Modules/posixmodule.c

martin.v.loewis python-checkins at python.org
Tue May 5 19:17:55 CEST 2009


Author: martin.v.loewis
Date: Tue May  5 19:17:55 2009
New Revision: 72340

Log:
Issue #5943: Fix lchflags crash.


Modified:
   python/branches/py3k/Modules/posixmodule.c

Modified: python/branches/py3k/Modules/posixmodule.c
==============================================================================
--- python/branches/py3k/Modules/posixmodule.c	(original)
+++ python/branches/py3k/Modules/posixmodule.c	Tue May  5 19:17:55 2009
@@ -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


More information about the Python-checkins mailing list