summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2010-10-30 13:17:33 +0200
committerGravatar waker <wakeroid@gmail.com>2010-10-30 13:17:33 +0200
commit1a738cde22e26a85caef127e55022755b23183b5 (patch)
treeb5b52c8ab9e7a44d4251268239e0f74e84f65e38 /playlist.c
parent026ab2385c64837dc1c215efea8fb0f87ac2efb5 (diff)
fixed skipping trailing whitespace in cuesheets
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c3
1 files changed, 3 insertions, 0 deletions
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;
}