aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/PC/getpathp.c
diff options
context:
space:
mode:
Diffstat (limited to 'PC/getpathp.c')
-rw-r--r--PC/getpathp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/getpathp.c b/PC/getpathp.c
index 98a754976c6..062697b3e9a 100644
--- a/PC/getpathp.c
+++ b/PC/getpathp.c
@@ -266,7 +266,7 @@ canonicalize(wchar_t *buffer, const wchar_t *path)
}
if (PathIsRelativeW(path)) {
- wchar_t buff[MAXPATHLEN];
+ wchar_t buff[MAXPATHLEN + 1];
if (!GetCurrentDirectoryW(MAXPATHLEN, buff)) {
return _PyStatus_ERR("unable to find current working directory");
}