Cleanup: correct path size argument

BKE_appdir_folder_documents clamps to FILE_MAXDIR internally.
This commit is contained in:
Campbell Barton 2023-05-08 12:08:38 +10:00
parent 8a852de147
commit bb5a22539c
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ const char *BKE_appdir_folder_default(void)
#ifndef WIN32
return BLI_getenv("HOME");
#else /* Windows */
static char documentfolder[MAXPATHLEN];
static char documentfolder[FILE_MAXDIR];
if (BKE_appdir_folder_documents(documentfolder)) {
return documentfolder;