summaryrefslogtreecommitdiff
path: root/junklib.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-05-09 17:11:51 +0200
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-05-09 17:11:51 +0200
commit78a865da6c21231b1cff56c45c94fe1641159616 (patch)
tree83ed96e75224f42905302a7c6918bb96d56466fc /junklib.c
parent1b49c36a819f05ed64276642a16883c6e7c24a98 (diff)
junklib: fixed handlid invalid UFID in id3v2
Diffstat (limited to 'junklib.c')
-rw-r--r--junklib.c6
1 files changed, 3 insertions, 3 deletions
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;