diff options
author | William Wilgus <me.theuser@yahoo.com> | 2018-07-25 08:31:13 +0200 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2018-07-25 08:31:13 +0200 |
commit | 021124f868ec98b2b5e0d147fabec4ec2bca2dac (patch) | |
tree | e72a58a0441215f558bfa263777983df9c5bb280 /apps/cuesheet.c | |
parent | c332180afd8ac408883ba79c6c4d9c86120198e0 (diff) |
Revert "Fix cuesheet printf truncation"
This reverts commit c332180afd8ac408883ba79c6c4d9c86120198e0.
Change-Id: Ic7a85a0fe82cd13514e85011e0a5cbd79ec36c2b
Diffstat (limited to 'apps/cuesheet.c')
-rw-r--r-- | apps/cuesheet.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/cuesheet.c b/apps/cuesheet.c index c3df275f05..c195460205 100644 --- a/apps/cuesheet.c +++ b/apps/cuesheet.c @@ -364,9 +364,8 @@ void browse_cuesheet(struct cuesheet *cue) struct cuesheet_file cue_file; struct mp3entry *id3 = audio_current_track(); - int remaining = 0; - snprintf(title, sizeof(title), "%s: %n%.*s", cue->performer, - &remaining, MAX_PATH - remaining, 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); |