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 2ac79d2 + 2a4bece commit eb39cbeCopy full SHA for eb39cbe
compat/mingw.c
@@ -1326,8 +1326,11 @@ char *mingw_mktemp(char *template)
1326
int offset = 0;
1327
1328
/* we need to return the path, thus no long paths here! */
1329
- if (xutftowcs_path(wtemplate, template) < 0)
+ if (xutftowcsn(wtemplate, template, MAX_PATH, -1) < 0) {
1330
+ if (errno == ERANGE)
1331
+ errno = ENAMETOOLONG;
1332
return NULL;
1333
+ }
1334
1335
if (is_dir_sep(template[0]) && !is_dir_sep(template[1]) &&
1336
iswalpha(wtemplate[0]) && wtemplate[1] == L':') {
0 commit comments