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.
1 parent 77b49a7 commit c4af338Copy full SHA for c4af338
pxr/base/arch/darwin.mm
@@ -1,5 +1,5 @@
1
//
2
-// Copyright 2025 Pixar
+// Copyright 2025 Apple
3
4
// Licensed under the terms set forth in the LICENSE.txt file available at
5
// https://openusd.org/license.
@@ -13,13 +13,8 @@
13
14
15
const char* Arch_DarwinGetTemporaryDirectory() {
16
- char* temporaryDirectory;
17
-
18
- const char *nsTmpDir = [NSTemporaryDirectory() UTF8String];
19
- temporaryDirectory = new char[strlen(nsTmpDir) + 1];
20
- strcpy(temporaryDirectory, nsTmpDir);
21
22
- return temporaryDirectory;
+ std::string tmpDir = [NSTemporaryDirectory() UTF8String];
+ return tmpDir.c_str();
23
}
24
25
PXR_NAMESPACE_CLOSE_SCOPE
0 commit comments