diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2022-10-29 16:11:21 +0200 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2022-10-29 16:11:21 +0200 |
commit | e29effa117f7a72d9ec2c15bf6ba6a2e437fdb0c (patch) | |
tree | beb2f2044692f1797988cd72b81a6eae575971e9 /src | |
parent | 8df721df25864f89772c58a4486314855bf1a37e (diff) | |
download | open-axiom-e29effa117f7a72d9ec2c15bf6ba6a2e437fdb0c.tar.gz |
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/cfuns-c.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/cfuns-c.cxx b/src/lib/cfuns-c.cxx index 5dbcd6bc..61bb36f7 100644 --- a/src/lib/cfuns-c.cxx +++ b/src/lib/cfuns-c.cxx @@ -501,11 +501,11 @@ oa_acquire_temporary_pathname() { } return strdup(buf); #elif HAVE_DECL_MKTEMP - return mktemp(copy_c_str(std::string{ oa_get_tmpdir() } + "/oa-XXXXXX")); + return mktemp(strdup((std::string{ oa_get_tmpdir() } + "/oa-XXXXXX").c_str())); #elif HAVE_DECL_TEMPNAM return tempnam(oa_get_tmpdir(), "oa-"); #else - return copy_c_str("oa-" + std::to_string(random())); + return strdup(("oa-" + std::to_string(random())).c_str()); #endif } |