diff options
author | waker <wakeroid@gmail.com> | 2012-04-02 18:50:56 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2012-04-02 18:52:04 +0200 |
commit | b546cdfecc077961205728e4be0af72c23a9d53d (patch) | |
tree | 0fa04f8e1c6d870bc3d4e0fe0425577607232ac1 /junklib.c | |
parent | 7ca65607dcd1d304dbd5abce0d782a5caf26c304 (diff) |
fixed bug in id3v2 parser which wasn't trimming whitespace correctly at the end of text fields
Diffstat (limited to 'junklib.c')
-rw-r--r-- | junklib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |