diff options
author | William Wilgus <me.theuser@yahoo.com> | 2018-07-25 07:32:23 +0200 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2018-07-25 07:33:13 +0200 |
commit | a81c63160c5d1da3a5c2b407fae58daead6199a8 (patch) | |
tree | e72a58a0441215f558bfa263777983df9c5bb280 /apps/cuesheet.c | |
parent | c15af64452a03be1362ff2ee56915f5cca24a445 (diff) |
Remove truncation from cuesheet
Lets see if this works..
Change-Id: I1fa7f17a07b3a7b479f987694ffcd59bc4e0bf5b
Diffstat (limited to 'apps/cuesheet.c')
-rw-r--r-- | apps/cuesheet.c | 4 |
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) struct cuesheet_file cue_file; struct mp3entry *id3 = audio_current_track(); - snprintf(title, MAX_PATH, "%s: %s", cue->performer, cue->title); + snprintf(title, sizeof(title), "%s: %.*s", cue->performer, + MAX_PATH - strlen(cue->performer) - 3, cue->title); + 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_title(&lists, title, 0); |