summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmp3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmp3.c b/cmp3.c
index f264ea7f..35031166 100644
--- a/cmp3.c
+++ b/cmp3.c
@@ -885,7 +885,7 @@ convstr_id3v2_4 (const unsigned char* str, int sz) {
strncpy (out, str+1, 2047);
sz--;
out[min (sz, 2047)] = 0;
- return out;
+ return strdup (out);
}
else if (*str == 1) {
enc = "UTF-16";