diff options
Diffstat (limited to 'apps/cuesheet.c')
-rw-r--r-- | apps/cuesheet.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/cuesheet.c b/apps/cuesheet.c index c195460205..c3df275f05 100644 --- a/apps/cuesheet.c +++ b/apps/cuesheet.c | |||
@@ -364,8 +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, sizeof(title), "%s: %.*s", cue->performer, | 367 | int remaining = 0; |
368 | MAX_PATH - strlen(cue->performer) - 3, cue->title); | 368 | snprintf(title, sizeof(title), "%s: %n%.*s", cue->performer, |
369 | &remaining, MAX_PATH - remaining, cue->title); | ||
369 | 370 | ||
370 | gui_synclist_init(&lists, list_get_name_cb, cue, false, 2, NULL); | 371 | gui_synclist_init(&lists, list_get_name_cb, cue, false, 2, NULL); |
371 | gui_synclist_set_nb_items(&lists, 2*cue->track_count); | 372 | gui_synclist_set_nb_items(&lists, 2*cue->track_count); |