diff options
Diffstat (limited to 'source/blender/blenlib/intern/string.c')
-rw-r--r-- | source/blender/blenlib/intern/string.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/string.c b/source/blender/blenlib/intern/string.c index a92b226d033..f29636eb55c 100644 --- a/source/blender/blenlib/intern/string.c +++ b/source/blender/blenlib/intern/string.c @@ -1026,7 +1026,9 @@ size_t BLI_str_format_int_grouped(char dst[16], int num) */ size_t BLI_str_format_uint64_grouped(char dst[16], uint64_t num) { - char src[16]; + /* NOTE: Buffer to hold maximum unsigned int64, which is 1.8e+19. but + * we also need space for commas and null-terminator. */ + char src[27]; int num_len = sprintf(src, "%"PRIu64"", num); return BLI_str_format_int_grouped_ex(src, dst, num_len); |