Fix buffer overflow with BLI_str_format_uint64_grouped
Caused by cd4328dd82
.
This commit is contained in:
parent
0d3ea69daa
commit
da49873e89
|
@ -289,7 +289,7 @@ static void file_draw_tooltip_custom_func(bContext * /*C*/, uiTooltipData *tip,
|
|||
char size[16];
|
||||
BLI_filelist_entry_size_to_string(nullptr, file->size, false, size);
|
||||
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);
|
||||
UI_tooltip_text_field_add(
|
||||
tip,
|
||||
|
|
Loading…
Reference in New Issue