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 cccd050 + 086e4e2 commit cd0fc4fCopy full SHA for cd0fc4f
compat/mingw.c
@@ -1340,8 +1340,11 @@ char *mingw_mktemp(char *template)
1340
int offset = 0;
1341
1342
/* we need to return the path, thus no long paths here! */
1343
- if (xutftowcs_path(wtemplate, template) < 0)
+ if (xutftowcsn(wtemplate, template, MAX_PATH, -1) < 0) {
1344
+ if (errno == ERANGE)
1345
+ errno = ENAMETOOLONG;
1346
return NULL;
1347
+ }
1348
1349
if (is_dir_sep(template[0]) && !is_dir_sep(template[1]) &&
1350
iswalpha(wtemplate[0]) && wtemplate[1] == L':') {
0 commit comments