replace FILE_MAXDIR + FILE_MAXFILE with FILE_MAX

This commit is contained in:
2011-11-26 04:07:38 +00:00
parent af7288c407
commit 6736576f6d
39 changed files with 136 additions and 136 deletions

View File

@@ -200,7 +200,7 @@ void BPY_python_start(int argc, const char **argv)
PyThreadState *py_tstate= NULL;
/* not essential but nice to set our name */
static wchar_t program_path_wchar[FILE_MAXDIR+FILE_MAXFILE]; /* python holds a reference */
static wchar_t program_path_wchar[FILE_MAX]; /* python holds a reference */
BLI_strncpy_wchar_from_utf8(program_path_wchar, BLI_program_path(), sizeof(program_path_wchar) / sizeof(wchar_t));
Py_SetProgramName(program_path_wchar);