summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2023-08-16 23:19:48 (GMT)
committerGitHub <noreply@github.com>2023-08-16 23:19:48 (GMT)
commitede98958810b76694cf756d305b564cd6adc1a48 (patch)
tree89b00419836960b648ab4104277db32c45e9ad14 /Include
parent2a00cf2db8a19533dc7d71276ce6a77f6a103c65 (diff)
downloadcpython-ede98958810b76694cf756d305b564cd6adc1a48.zip
cpython-ede98958810b76694cf756d305b564cd6adc1a48.tar.gz
cpython-ede98958810b76694cf756d305b564cd6adc1a48.tar.bz2
[3.12] gh-106242: Fix path truncation in os.path.normpath (GH-106816) (#107981)
* gh-106242: Fix path truncation in os.path.normpath (GH-106816) * gh-106242: Minor fixup to avoid compiler warnings --------- Co-authored-by: Finn Womack <flan313@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_fileutils.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/internal/pycore_fileutils.h b/Include/internal/pycore_fileutils.h
index ef6642d..7c2b6ec 100644
--- a/Include/internal/pycore_fileutils.h
+++ b/Include/internal/pycore_fileutils.h
@@ -252,7 +252,8 @@ extern int _Py_add_relfile(wchar_t *dirname,
const wchar_t *relfile,
size_t bufsize);
extern size_t _Py_find_basename(const wchar_t *filename);
-PyAPI_FUNC(wchar_t *) _Py_normpath(wchar_t *path, Py_ssize_t size);
+PyAPI_FUNC(wchar_t*) _Py_normpath(wchar_t *path, Py_ssize_t size);
+extern wchar_t *_Py_normpath_and_size(wchar_t *path, Py_ssize_t size, Py_ssize_t *length);
// The Windows Games API family does not provide these functions
// so provide our own implementations. Remove them in case they get added