Use a path length of 4096 for loading save data.
This commit is contained in:
parent
052f39fbad
commit
abc4e576fb
|
@ -57,6 +57,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#define MAX_DESCRIPTION_LENGTH 512
|
||||
#define MAX_LINE_LENGTH 1024
|
||||
#define MAX_FILENAME_LENGTH 1024
|
||||
#define MAX_PATH_LENGTH 4096
|
||||
|
||||
#define NUM_TEXTURE_BUCKETS 32
|
||||
|
||||
|
|
|
@ -82,8 +82,8 @@ int writeFile(char *filename, char *data)
|
|||
|
||||
char *getSaveFilePath(char *filename)
|
||||
{
|
||||
static char path[MAX_FILENAME_LENGTH];
|
||||
memset(path, '\0', MAX_FILENAME_LENGTH);
|
||||
static char path[MAX_PATH_LENGTH];
|
||||
memset(path, '\0', MAX_PATH_LENGTH);
|
||||
|
||||
sprintf(path, "%s/%s", app.saveDir, filename);
|
||||
|
||||
|
|
Loading…
Reference in New Issue