File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -620,21 +620,21 @@ calculate_path(void)
620620 if (* p == DELIM )
621621 bufsz ++ ; /* number of DELIM plus one */
622622 }
623- bufsz *= wcsnlen_s (pythonhome , MAXPATHLEN + 1 );
623+ bufsz *= wcslen (pythonhome );
624624 }
625625 else
626626 bufsz = 0 ;
627- bufsz += wcsnlen_s (PYTHONPATH , MAXPATHLEN + 1 ) + 1 ;
628- bufsz += wcsnlen_s (argv0_path , MAXPATHLEN + 1 ) + 1 ;
627+ bufsz += wcslen (PYTHONPATH ) + 1 ;
628+ bufsz += wcslen (argv0_path ) + 1 ;
629629#ifdef MS_WINDOWS
630630 if (!applocal && userpath )
631- bufsz += wcsnlen_s (userpath , MAXPATHLEN + 1 ) + 1 ;
631+ bufsz += wcslen (userpath ) + 1 ;
632632 if (!applocal && machinepath )
633- bufsz += wcsnlen_s (machinepath , MAXPATHLEN + 1 ) + 1 ;
634- bufsz += wcsnlen_s (zip_path , MAXPATHLEN + 1 ) + 1 ;
633+ bufsz += wcslen (machinepath ) + 1 ;
634+ bufsz += wcslen (zip_path ) + 1 ;
635635#endif
636636 if (envpath != NULL )
637- bufsz += wcsnlen_s (envpath , MAXPATHLEN + 1 ) + 1 ;
637+ bufsz += wcslen (envpath ) + 1 ;
638638
639639 module_search_path = buf = PyMem_RawMalloc (bufsz * sizeof (wchar_t ));
640640 if (buf == NULL ) {
You can’t perform that action at this time.
0 commit comments