Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f64b9d5c
Commit
f64b9d5c
authored
9 years ago
by
Steve Dower
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes handling of long values of PYTHONPATH on Windows.
parent
7ca13532
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
PC/getpathp.c
PC/getpathp.c
+7
-7
No files found.
PC/getpathp.c
View file @
f64b9d5c
...
...
@@ -620,21 +620,21 @@ calculate_path(void)
if
(
*
p
==
DELIM
)
bufsz
++
;
/* number of DELIM plus one */
}
bufsz
*=
wcs
nlen_s
(
pythonhome
,
MAXPATHLEN
+
1
);
bufsz
*=
wcs
len
(
pythonhome
);
}
else
bufsz
=
0
;
bufsz
+=
wcs
nlen_s
(
PYTHONPATH
,
MAXPATHLEN
+
1
)
+
1
;
bufsz
+=
wcs
nlen_s
(
argv0_path
,
MAXPATHLEN
+
1
)
+
1
;
bufsz
+=
wcs
len
(
PYTHONPATH
)
+
1
;
bufsz
+=
wcs
len
(
argv0_path
)
+
1
;
#ifdef MS_WINDOWS
if
(
!
applocal
&&
userpath
)
bufsz
+=
wcs
nlen_s
(
userpath
,
MAXPATHLEN
+
1
)
+
1
;
bufsz
+=
wcs
len
(
userpath
)
+
1
;
if
(
!
applocal
&&
machinepath
)
bufsz
+=
wcs
nlen_s
(
machinepath
,
MAXPATHLEN
+
1
)
+
1
;
bufsz
+=
wcs
nlen_s
(
zip_path
,
MAXPATHLEN
+
1
)
+
1
;
bufsz
+=
wcs
len
(
machinepath
)
+
1
;
bufsz
+=
wcs
len
(
zip_path
)
+
1
;
#endif
if
(
envpath
!=
NULL
)
bufsz
+=
wcs
nlen_s
(
envpath
,
MAXPATHLEN
+
1
)
+
1
;
bufsz
+=
wcs
len
(
envpath
)
+
1
;
module_search_path
=
buf
=
PyMem_RawMalloc
(
bufsz
*
sizeof
(
wchar_t
));
if
(
buf
==
NULL
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment