From b546cdfecc077961205728e4be0af72c23a9d53d Mon Sep 17 00:00:00 2001 From: waker Date: Mon, 2 Apr 2012 18:50:56 +0200 Subject: fixed bug in id3v2 parser which wasn't trimming whitespace correctly at the end of text fields --- junklib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'junklib.c') diff --git a/junklib.c b/junklib.c index a23cea65..d91f4060 100644 --- a/junklib.c +++ b/junklib.c @@ -736,7 +736,7 @@ convstr_id3v2 (int version, uint8_t encoding, const unsigned char* str, int sz) } // trim trailing linebreaks for (n = converted_sz-1; n >= 0; n--) { - if (out[n] == '\n') { + if ((uint8_t)out[n] <= 32) { out[n] = 0; } else { -- cgit v1.2.3