mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Assert on invalid file names.
This commit is contained in:
parent
27965e8690
commit
c7e32a16ec
@ -87,6 +87,8 @@ static void GetConfigDirectory( char* buf, size_t& sz )
|
||||
|
||||
const char* GetSavePath( const char* file )
|
||||
{
|
||||
assert( file && *file );
|
||||
|
||||
enum { Pool = 8 };
|
||||
enum { MaxPath = 512 };
|
||||
static char bufpool[Pool][MaxPath];
|
||||
@ -112,6 +114,9 @@ const char* GetSavePath( const char* file )
|
||||
|
||||
const char* GetSavePath( const char* program, uint64_t time, const char* file, bool create )
|
||||
{
|
||||
assert( file && *file );
|
||||
assert( program && *program );
|
||||
|
||||
enum { Pool = 8 };
|
||||
enum { MaxPath = 512 };
|
||||
static char bufpool[Pool][MaxPath];
|
||||
|
Loading…
Reference in New Issue
Block a user