Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 55a1220

Browse files
committed
pythonrun.c: use MAXPATHLEN instead of PATH_MAX
PATH_MAX is not available on "MIPS IRIX 6.5.30 [SB] 3.x" buildbot
1 parent 340f712 commit 55a1220

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/pythonrun.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ Py_GetProgramName(void)
821821
}
822822

823823
static wchar_t *default_home = NULL;
824-
static wchar_t env_home[PATH_MAX+1];
824+
static wchar_t env_home[MAXPATHLEN+1];
825825

826826
void
827827
Py_SetPythonHome(wchar_t *home)

0 commit comments

Comments
 (0)