Skip to content

Commit d5e4b67

Browse files
committed
Add todo comment
Signed-off-by: Darby Johnston <[email protected]>
1 parent 5d465fe commit d5e4b67

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/opentimelineio/fileUtils.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ to_unix_separators(std::string const& path)
1818

1919
std::string create_temp_dir()
2020
{
21+
// \todo Replace std::tmpnam(), since it is potentially unsafe. A possible
22+
// replacement might be mkdtemp(), but that does not seem to be available
23+
// on Cygwin.
2124
std::string const out(std::tmpnam(nullptr));
2225
std::filesystem::create_directory(out);
2326
return out;

0 commit comments

Comments
 (0)