Revert "Remove truncation from cuesheet"

This reverts commit a81c63160c.

Change-Id: Ie6d3e780fd6318b6173943167015f78f4a9c327a
This commit is contained in:
William Wilgus 2018-07-25 08:29:56 +02:00
parent 021124f868
commit bdbc7f7b7b

View file

@ -364,9 +364,7 @@ void browse_cuesheet(struct cuesheet *cue)
struct cuesheet_file cue_file; struct cuesheet_file cue_file;
struct mp3entry *id3 = audio_current_track(); struct mp3entry *id3 = audio_current_track();
snprintf(title, sizeof(title), "%s: %.*s", cue->performer, snprintf(title, MAX_PATH, "%s: %s", cue->performer, cue->title);
MAX_PATH - strlen(cue->performer) - 3, cue->title);
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);