summaryrefslogtreecommitdiff
path: root/apps/cuesheet.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/cuesheet.c')
-rw-r--r--apps/cuesheet.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/cuesheet.c b/apps/cuesheet.c
index 52b8c5703b..c195460205 100644
--- a/apps/cuesheet.c
+++ b/apps/cuesheet.c
@@ -364,7 +364,9 @@ void browse_cuesheet(struct cuesheet *cue)
364 struct cuesheet_file cue_file; 364 struct cuesheet_file cue_file;
365 struct mp3entry *id3 = audio_current_track(); 365 struct mp3entry *id3 = audio_current_track();
366 366
367 snprintf(title, MAX_PATH, "%s: %s", cue->performer, cue->title); 367 snprintf(title, sizeof(title), "%s: %.*s", cue->performer,
368 MAX_PATH - strlen(cue->performer) - 3, cue->title);
369
368 gui_synclist_init(&lists, list_get_name_cb, cue, false, 2, NULL); 370 gui_synclist_init(&lists, list_get_name_cb, cue, false, 2, NULL);
369 gui_synclist_set_nb_items(&lists, 2*cue->track_count); 371 gui_synclist_set_nb_items(&lists, 2*cue->track_count);
370 gui_synclist_set_title(&lists, title, 0); 372 gui_synclist_set_title(&lists, title, 0);