summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2016-09-09 22:53:58 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2016-09-09 22:53:58 (GMT)
commit3ceb573a720b8b9c9148135c64ba966fa37e3a92 (patch)
treedfad9dbcc6debe117fcc26eb8d84a592fa689025 /PC
parentc30767239569d0a3e84c113070ec1009b1a5f3a7 (diff)
downloadcpython-3ceb573a720b8b9c9148135c64ba966fa37e3a92.zip
cpython-3ceb573a720b8b9c9148135c64ba966fa37e3a92.tar.gz
cpython-3ceb573a720b8b9c9148135c64ba966fa37e3a92.tar.bz2
Fix call to PathCombineW.
Diffstat (limited to 'PC')
-rw-r--r--PC/getpathp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/getpathp.c b/PC/getpathp.c
index 7d53fbd..4d71fe7 100644
--- a/PC/getpathp.c
+++ b/PC/getpathp.c
@@ -197,7 +197,7 @@ join(wchar_t *buffer, const wchar_t *stuff)
if (FAILED(_PathCchCombineEx(buffer, MAXPATHLEN+1, buffer, stuff, 0)))
Py_FatalError("buffer overflow in getpathp.c's join()");
} else {
- if (!PathCombineW(buffer, NULL, stuff))
+ if (!PathCombineW(buffer, buffer, stuff))
Py_FatalError("buffer overflow in getpathp.c's join()");
}
}