diff options
author | Julian Eisel <julian@blender.org> | 2021-09-29 18:49:06 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-09-29 18:49:42 +0300 |
commit | 45a312fd8fb98b970cb999c7afa53f83c66b97ec (patch) | |
tree | 98922eae9f7575742bb5822574a838f3dd161095 /source/blender | |
parent | 9d9f205dc4a9ddae3d654c64894eaca8443cacc0 (diff) |
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`.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/asset/intern/asset_catalog.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/asset/intern/asset_catalog.cc b/source/blender/editors/asset/intern/asset_catalog.cc index 202d4234051..68f11d77f44 100644 --- a/source/blender/editors/asset/intern/asset_catalog.cc +++ b/source/blender/editors/asset/intern/asset_catalog.cc @@ -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)); |