We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4ad442e + 181e466 commit 2203f0dCopy full SHA for 2203f0d
compat/mingw.c
@@ -1313,8 +1313,11 @@ char *mingw_mktemp(char *template)
1313
int offset = 0;
1314
1315
/* we need to return the path, thus no long paths here! */
1316
- if (xutftowcs_path(wtemplate, template) < 0)
+ if (xutftowcsn(wtemplate, template, MAX_PATH, -1) < 0) {
1317
+ if (errno == ERANGE)
1318
+ errno = ENAMETOOLONG;
1319
return NULL;
1320
+ }
1321
1322
if (is_dir_sep(template[0]) && !is_dir_sep(template[1]) &&
1323
iswalpha(wtemplate[0]) && wtemplate[1] == L':') {
0 commit comments