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 2fa6700 + 373c2f4 commit 8cc26fbCopy full SHA for 8cc26fb
compat/mingw.c
@@ -1433,8 +1433,11 @@ char *mingw_mktemp(char *template)
1433
int offset = 0;
1434
1435
/* we need to return the path, thus no long paths here! */
1436
- if (xutftowcs_path(wtemplate, template) < 0)
+ if (xutftowcsn(wtemplate, template, MAX_PATH, -1) < 0) {
1437
+ if (errno == ERANGE)
1438
+ errno = ENAMETOOLONG;
1439
return NULL;
1440
+ }
1441
1442
if (is_dir_sep(template[0]) && !is_dir_sep(template[1]) &&
1443
iswalpha(wtemplate[0]) && wtemplate[1] == L':') {
0 commit comments