mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
Fix call to PathCombineW.
This commit is contained in:
parent
c307672395
commit
3ceb573a72
1 changed files with 1 additions and 1 deletions
|
|
@ -197,7 +197,7 @@ join(wchar_t *buffer, const wchar_t *stuff)
|
||||||
if (FAILED(_PathCchCombineEx(buffer, MAXPATHLEN+1, buffer, stuff, 0)))
|
if (FAILED(_PathCchCombineEx(buffer, MAXPATHLEN+1, buffer, stuff, 0)))
|
||||||
Py_FatalError("buffer overflow in getpathp.c's join()");
|
Py_FatalError("buffer overflow in getpathp.c's join()");
|
||||||
} else {
|
} else {
|
||||||
if (!PathCombineW(buffer, NULL, stuff))
|
if (!PathCombineW(buffer, buffer, stuff))
|
||||||
Py_FatalError("buffer overflow in getpathp.c's join()");
|
Py_FatalError("buffer overflow in getpathp.c's join()");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue