File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1239,8 +1239,11 @@ char *mingw_mktemp(char *template)
12391239 int offset = 0 ;
12401240
12411241 /* we need to return the path, thus no long paths here! */
1242- if (xutftowcs_path (wtemplate , template ) < 0 )
1242+ if (xutftowcsn (wtemplate , template , MAX_PATH , -1 ) < 0 ) {
1243+ if (errno == ERANGE )
1244+ errno = ENAMETOOLONG ;
12431245 return NULL ;
1246+ }
12441247
12451248 if (is_dir_sep (template [0 ]) && !is_dir_sep (template [1 ]) &&
12461249 iswalpha (wtemplate [0 ]) && wtemplate [1 ] == L':' ) {
@@ -3754,7 +3757,7 @@ int wmain(int argc, const wchar_t **wargv)
37543757
37553758 maybe_redirect_std_handles ();
37563759 adjust_symlink_flags ();
3757- fsync_object_files = 1 ;
3760+ fsync_object_files = FSYNC_OBJECT_FILES_ON ;
37583761
37593762 /* determine size of argv and environ conversion buffer */
37603763 maxlen = wcslen (wargv [0 ]);
You can’t perform that action at this time.
0 commit comments