Skip to content

Commit

Permalink
Fixed Windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koefferlein committed Nov 1, 2023
1 parent b78f013 commit 0474884
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tl/tl/tlFileUtils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,7 @@ tmpfile (const std::string &domain)
char *tmpstr = strdup (templ.c_str ());

#if defined(_WIN32)
if (_mktemp_s (tmpstr, templ) != 0) {
if (_mktemp_s (tmpstr, templ.size ()) != 0) {
free (tmpstr);
throw tl::Exception (tl::to_string (tr ("Unable to create temporary folder name in %s")), tmp);
}
Expand Down Expand Up @@ -1092,7 +1092,7 @@ tmpdir (const std::string &domain)
char *tmpstr = strdup (templ.c_str ());

#if defined(_WIN32)
if (_mktemp_s (tmpstr, templ) != 0) {
if (_mktemp_s (tmpstr, templ.size ()) != 0) {
free (tmpstr);
throw tl::Exception (tl::to_string (tr ("Unable to create temporary folder name in %s")), tmp);
}
Expand Down

0 comments on commit 0474884

Please sign in to comment.