commit | 015f4d87ab0f7d0888a9f20672feaec373f8ef36 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Thu Oct 07 22:29:53 2010 +0000 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Thu Oct 07 22:29:53 2010 +0000 |
tree | 4b3444f0d329c5b4283a6f9b77e77026552d093c | |
parent | a4a759515e2e0114d41acdada3642265c01270ac [diff] [blame] |
_Py_wrealpath() requires the size of the output buffer
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 1eba28e..d02ee5b 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c
@@ -1742,7 +1742,7 @@ #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