summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-12-13 23:22:10 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-12-13 23:22:10 (GMT)
commit9fdaff30dbe38782f5cbda2249763fd5bd38e2c4 (patch)
tree899b272a25a5ca6f0277ca7a38be1b35548816f7 /Modules
parentd991963a9d7d2cab962bd5fe7bdf6eeff903ed8a (diff)
parente847d7170d3f41b1ec773ab203c11f1addd6d4ac (diff)
downloadcpython-9fdaff30dbe38782f5cbda2249763fd5bd38e2c4.zip
cpython-9fdaff30dbe38782f5cbda2249763fd5bd38e2c4.tar.gz
cpython-9fdaff30dbe38782f5cbda2249763fd5bd38e2c4.tar.bz2
Merge 3.5
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index ce5960c..0e423f9 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -1354,7 +1354,7 @@ win32_wchdir(LPCWSTR path)
result = GetCurrentDirectoryW(Py_ARRAY_LENGTH(path_buf), new_path);
if (!result)
return FALSE;
- if (result > Py_ARRAY_LENGTH(new_path)) {
+ if (result > Py_ARRAY_LENGTH(path_buf)) {
new_path = PyMem_RawMalloc(result * sizeof(wchar_t));
if (!new_path) {
SetLastError(ERROR_OUTOFMEMORY);