Fix invalid buffer size used in ED_asset_handle_get_full_library_path

Relatively harmless as the length was shorter, however all callers
used the larger size.
This commit is contained in:
Campbell Barton
2023-05-23 10:54:53 +10:00
parent 6ac6e63eaf
commit c440efb23a

View File

@@ -66,7 +66,7 @@ void ED_asset_handle_get_full_library_path(const AssetHandle *asset_handle,
return;
}
BLI_strncpy(r_full_lib_path, library_path.c_str(), FILE_MAX);
BLI_strncpy(r_full_lib_path, library_path.c_str(), FILE_MAX_LIBEXTRA);
}
bool ED_asset_handle_get_use_relative_path(const AssetHandle *asset)