From 78a865da6c21231b1cff56c45c94fe1641159616 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Fri, 9 May 2014 17:11:51 +0200 Subject: junklib: fixed handlid invalid UFID in id3v2 --- junklib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'junklib.c') diff --git a/junklib.c b/junklib.c index 32dbd3dd..05e58fc9 100644 --- a/junklib.c +++ b/junklib.c @@ -3005,12 +3005,12 @@ junk_id3v2_load_ufid (int version_major, playItem_t *it, uint8_t *readptr, int s readptr++; synched_size--; } - readptr++; - synched_size--; if (!synched_size) { - trace ("UFID id is empty"); + trace ("UFID owner is not null-terminated\n"); return -1; } + readptr++; + synched_size--; char id[synched_size+1]; memcpy (id, readptr, synched_size); id[synched_size] = 0; -- cgit v1.2.3