Fix buffer overflow with BLI_str_format_uint64_grouped

Caused by cd4328dd82.
This commit is contained in:
Campbell Barton
2024-03-28 11:40:23 +11:00
committed by Thomas Dinges
parent 21031af49c
commit 776327832d
@@ -289,7 +289,7 @@ static void file_draw_tooltip_custom_func(bContext * /*C*/, uiTooltipData *tip,
char size[16]; char size[16];
BLI_filelist_entry_size_to_string(nullptr, file->size, false, size); BLI_filelist_entry_size_to_string(nullptr, file->size, false, size);
if (file->size < 10000) { if (file->size < 10000) {
char size_full[16]; char size_full[BLI_STR_FORMAT_UINT64_GROUPED_SIZE];
BLI_str_format_uint64_grouped(size_full, file->size); BLI_str_format_uint64_grouped(size_full, file->size);
UI_tooltip_text_field_add( UI_tooltip_text_field_add(
tip, tip,