We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e8f752 commit 6c942a8Copy full SHA for 6c942a8
PC/getpathp.c
@@ -266,7 +266,7 @@ canonicalize(wchar_t *buffer, const wchar_t *path)
266
}
267
268
if (PathIsRelativeW(path)) {
269
- wchar_t buff[MAXPATHLEN];
+ wchar_t buff[MAXPATHLEN + 1];
270
if (!GetCurrentDirectoryW(MAXPATHLEN, buff)) {
271
return _PyStatus_ERR("unable to find current working directory");
272
0 commit comments