summaryrefslogtreecommitdiff
path: root/junklib.c
diff options
context:
space:
mode:
Diffstat (limited to 'junklib.c')
-rw-r--r--junklib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/junklib.c b/junklib.c
index 530fd51f..45e98405 100644
--- a/junklib.c
+++ b/junklib.c
@@ -734,7 +734,7 @@ convstr_id3v2 (int version, uint8_t encoding, const unsigned char* str, int sz)
}
}
// trim trailing linebreaks
- for (n = converted_sz-2; n >= 0; n--) {
+ for (n = converted_sz-1; n >= 0; n--) {
if (out[n] == '\n') {
out[n] = 0;
}