From 1a738cde22e26a85caef127e55022755b23183b5 Mon Sep 17 00:00:00 2001 From: waker Date: Sat, 30 Oct 2010 13:17:33 +0200 Subject: fixed skipping trailing whitespace in cuesheets --- playlist.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/playlist.c b/playlist.c index ff5e2d19..496617cd 100644 --- a/playlist.c +++ b/playlist.c @@ -749,6 +749,9 @@ pl_get_value_from_cue (const char *p, int sz, char *out) { sz--; *out++ = *p++; } + while (out > p && (*(out-1) == 0x20 || *(out-1) == 0x8)) { + out--; + } *out = 0; } -- cgit v1.2.3