mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
Ignore cuesheet title truncation
Change-Id: I0de8a1468379f60140fb30b6c086fe15ea753da2
This commit is contained in:
parent
bdbc7f7b7b
commit
2eeb338e90
1 changed files with 7 additions and 1 deletions
|
@ -361,10 +361,16 @@ void browse_cuesheet(struct cuesheet *cue)
|
||||||
int action;
|
int action;
|
||||||
bool done = false;
|
bool done = false;
|
||||||
char title[MAX_PATH];
|
char title[MAX_PATH];
|
||||||
|
int len;
|
||||||
|
|
||||||
struct cuesheet_file cue_file;
|
struct cuesheet_file cue_file;
|
||||||
struct mp3entry *id3 = audio_current_track();
|
struct mp3entry *id3 = audio_current_track();
|
||||||
|
|
||||||
snprintf(title, MAX_PATH, "%s: %s", cue->performer, cue->title);
|
len = snprintf(title, sizeof(title), "%s: %s", cue->performer, cue->title);
|
||||||
|
|
||||||
|
if ((unsigned) len > sizeof(title))
|
||||||
|
DEBUGF("browse_cuesheet title truncated\n");
|
||||||
|
|
||||||
gui_synclist_init(&lists, list_get_name_cb, cue, false, 2, NULL);
|
gui_synclist_init(&lists, list_get_name_cb, cue, false, 2, NULL);
|
||||||
gui_synclist_set_nb_items(&lists, 2*cue->track_count);
|
gui_synclist_set_nb_items(&lists, 2*cue->track_count);
|
||||||
gui_synclist_set_title(&lists, title, 0);
|
gui_synclist_set_title(&lists, title, 0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue