summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-10-07 22:29:53 +0000
committerVictor Stinner <victor.stinner@haypocalc.com>2010-10-07 22:29:53 +0000
commitf99397e5074b70e10303516e11f73083e1b9dd5d (patch)
tree1d82eaa2df1389adf986bdbf8e9a5a26ff11cdf0 /Python/sysmodule.c
parent857734b7d26fb28bf7268a1a733155836feaab55 (diff)
downloadcpython-f99397e5074b70e10303516e11f73083e1b9dd5d.tar.gz
_Py_wrealpath() requires the size of the output buffer
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r--Python/sysmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 1eba28edd1..d02ee5b5c0 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -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