comparison 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
comparison
equal deleted inserted replaced
65165:2147cc152227 65166:8fd5d06462e6
1740 } 1740 }
1741 } 1741 }
1742 #else /* All other filename syntaxes */ 1742 #else /* All other filename syntaxes */
1743 if (_HAVE_SCRIPT_ARGUMENT(argc, argv)) { 1743 if (_HAVE_SCRIPT_ARGUMENT(argc, argv)) {
1744 #if defined(HAVE_REALPATH) 1744 #if defined(HAVE_REALPATH)
1745 if (_Py_wrealpath(argv0, fullpath)) { 1745 if (_Py_wrealpath(argv0, fullpath, PATH_MAX)) {
1746 argv0 = fullpath; 1746 argv0 = fullpath;
1747 } 1747 }
1748 #endif 1748 #endif
1749 p = wcsrchr(argv0, SEP); 1749 p = wcsrchr(argv0, SEP);
1750 } 1750 }