CVE-2012-3345
This commit is contained in:
parent
fb1f629bbc
commit
b5acc31a4d
5 changed files with 1 additions and 59 deletions
|
@ -34,28 +34,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
#import <Carbon/Carbon.h>
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
/*
|
||||
================
|
||||
Sys_TempPath
|
||||
================
|
||||
*/
|
||||
const char *Sys_TempPath( void )
|
||||
{
|
||||
static UInt8 posixPath[ MAX_OSPATH ];
|
||||
FSRef ref;
|
||||
if( FSFindFolder( kOnAppropriateDisk,
|
||||
kTemporaryFolderType, kCreateFolder, &ref ) == noErr )
|
||||
{
|
||||
if( FSRefMakePath( &ref, posixPath,
|
||||
sizeof( posixPath ) - 1 ) == noErr )
|
||||
{
|
||||
return (const char *)posixPath;
|
||||
}
|
||||
}
|
||||
|
||||
return "/tmp";
|
||||
}
|
||||
|
||||
/*
|
||||
==============
|
||||
Sys_Dialog
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue