diff Python/sysmodule.c @ 65166:8fd5d06462e6

_Py_wrealpath() requires the size of the output buffer
author Victor Stinner <victor.stinner@haypocalc.com>
date Thu, 07 Oct 2010 22:29:53 +0000
parents 39014f0abc32
children 932f97bfbdc0
line wrap: on
line diff
--- a/Python/sysmodule.c	Thu Oct 07 22:23:10 2010 +0000
+++ b/Python/sysmodule.c	Thu Oct 07 22:29:53 2010 +0000
@@ -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