mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Fix cuesheet printf truncation
Change-Id: I48189c3ce29f27d4b3bb4f874c80636c1f0ca6b6
This commit is contained in:
parent
a81c63160c
commit
c332180afd
1 changed files with 3 additions and 2 deletions
|
@ -364,8 +364,9 @@ void browse_cuesheet(struct cuesheet *cue)
|
|||
struct cuesheet_file cue_file;
|
||||
struct mp3entry *id3 = audio_current_track();
|
||||
|
||||
snprintf(title, sizeof(title), "%s: %.*s", cue->performer,
|
||||
MAX_PATH - strlen(cue->performer) - 3, cue->title);
|
||||
int remaining = 0;
|
||||
snprintf(title, sizeof(title), "%s: %n%.*s", cue->performer,
|
||||
&remaining, MAX_PATH - remaining, cue->title);
|
||||
|
||||
gui_synclist_init(&lists, list_get_name_cb, cue, false, 2, NULL);
|
||||
gui_synclist_set_nb_items(&lists, 2*cue->track_count);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue