diff options
author | Roman Artiukhin <bahusdrive@gmail.com> | 2024-06-05 11:33:16 +0300 |
---|---|---|
committer | Roman Artiukhin <bahusdrive@gmail.com> | 2024-06-24 16:59:14 +0300 |
commit | 95d8168385c29be1a785188778b8b620babf40b9 (patch) | |
tree | cf644d77cd1ec7b1b07856be18523266a0cd5ae8 | |
parent | 5d39d987c0a0687cd3e919c01847172ff5ae8813 (diff) | |
download | rockbox-95d8168385.tar.gz rockbox-95d8168385.zip |
plugins: playing time: Increase buffer for size strings
10 is too short for some localizations (for instance russian 103.23МиБ requires 13 chars due to utf8 encoding). Use 20 instead
Change-Id: I4c7d1233358c8322545fce45dc798691410dd21e
-rw-r--r-- | apps/plugins/playing_time.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/playing_time.c b/apps/plugins/playing_time.c index 1daf70c53e..292c6fa573 100644 --- a/apps/plugins/playing_time.c +++ b/apps/plugins/playing_time.c @@ -225,7 +225,7 @@ static const char * playing_time_get_or_speak_info(int selected_item, void * dat } case 5: { /* storage size */ int i; - char kbstr[ePT_KBS_COUNT][10]; + char kbstr[ePT_KBS_COUNT][20]; for (i = 0; i < ePT_KBS_COUNT; i++) { rb->output_dyn_value(kbstr[i], sizeof(kbstr[i]), @@ -248,7 +248,7 @@ static const char * playing_time_get_or_speak_info(int selected_item, void * dat break; } case 6: { /* Average track file size */ - char str[10]; + char str[20]; long avg_track_size = pti->kbs[ePT_KBS_TTL] / pti->nb_tracks; rb->output_dyn_value(str, sizeof(str), avg_track_size, kibyte_units, 3, true); rb->snprintf(buf, buffer_len, "%s", str); |