mirror of
https://github.com/python/cpython.git
synced 2025-09-08 01:41:19 +00:00
_Py_wrealpath() requires the size of the output buffer
This commit is contained in:
parent
a4a759515e
commit
015f4d87ab
3 changed files with 6 additions and 4 deletions
|
@ -1742,7 +1742,7 @@ sys_update_path(int argc, wchar_t **argv)
|
|||
#else /* All other filename syntaxes */
|
||||
if (_HAVE_SCRIPT_ARGUMENT(argc, argv)) {
|
||||
#if defined(HAVE_REALPATH)
|
||||
if (_Py_wrealpath(argv0, fullpath)) {
|
||||
if (_Py_wrealpath(argv0, fullpath, PATH_MAX)) {
|
||||
argv0 = fullpath;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue