File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 11//
2- // Copyright 2025 Pixar
2+ // Copyright 2025 Apple
33//
44// Licensed under the terms set forth in the LICENSE.txt file available at
55// https://openusd.org/license.
Original file line number Diff line number Diff line change 11//
2- // Copyright 2025 Pixar
2+ // Copyright 2025 Apple
33//
44// Licensed under the terms set forth in the LICENSE.txt file available at
55// https://openusd.org/license.
1313
1414
1515const 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;
16+ std::string tmpDir = [NSTemporaryDirectory () UTF8String ];
17+ return tmpDir.c_str ();
2318}
2419
2520PXR_NAMESPACE_CLOSE_SCOPE
You can’t perform that action at this time.
0 commit comments