summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2018-07-25 08:31:13 +0200
committerWilliam Wilgus <me.theuser@yahoo.com>2018-07-25 08:31:13 +0200
commit021124f868ec98b2b5e0d147fabec4ec2bca2dac (patch)
treee72a58a0441215f558bfa263777983df9c5bb280
parentc332180afd8ac408883ba79c6c4d9c86120198e0 (diff)
downloadrockbox-021124f.tar.gz
rockbox-021124f.zip
Revert "Fix cuesheet printf truncation"
This reverts commit c332180afd8ac408883ba79c6c4d9c86120198e0. Change-Id: Ic7a85a0fe82cd13514e85011e0a5cbd79ec36c2b
-rw-r--r--apps/cuesheet.c5
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);