File size column is bogus for widths above 9 #2580
Labels
area: core
Issues not related to a specific subsystem
prio: medium
Has the potential to affect progress
Milestone
Important
This issue was migrated from Trac:
ply
(ply@…-online.hu)The panel column for the file sizes displays a value formatted according to the column width. However, width values above 9 produce undefined behavior. For example the width of 10 displays all file sizes in kilobytes, the width of 11 in megabytes, and the width of 12 again in bytes.
This is probably due to the function size_trunc_len in lib/util.c using a fixed array of constants that have values only up to 9 decimal places, and not checking for this limit. Please add a check, and a couple of more allowed widths, to let me use 10 digits for my file sizes. :-)
The text was updated successfully, but these errors were encountered: