Fix build failure on Windows + wrong buffer size

Was using `NAME_MAX` which is defined in `limits.h`, which again may be
implicitly included by the compiler. Intend was to use the Blender
define `MAX_NAME`.
This commit is contained in:
Julian Eisel 2021-09-29 17:49:06 +02:00
parent 9d9f205dc4
commit 45a312fd8f
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ static std::string catalog_name_ensure_unique(AssetCatalogService &catalog_servi
{
CatalogUniqueNameFnData fn_data = {catalog_service, parent_path};
char unique_name[NAME_MAX] = "";
char unique_name[MAX_NAME] = "";
BLI_uniquename_cb(
catalog_name_exists_fn, &fn_data, name.c_str(), '.', unique_name, sizeof(unique_name));