oggvorbis_plugin.c: oops, fix an off-by-one
Huge thanks to lorijho for finding the bug. git-svn-id: https://svn.musicpd.org/mpd/trunk@4080 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
@@ -179,8 +179,8 @@ static MpdTag * oggCommentsParse(char ** comments) {
|
|||||||
MpdTag * tag = NULL;
|
MpdTag * tag = NULL;
|
||||||
|
|
||||||
while(*comments) {
|
while(*comments) {
|
||||||
unsigned int j;
|
int j;
|
||||||
for (j = TAG_NUM_OF_ITEM_TYPES; j--; ) {
|
for (j = TAG_NUM_OF_ITEM_TYPES - 1; --j >= 0; ) {
|
||||||
if (ogg_parseCommentAddToTag(*comments, j, &tag))
|
if (ogg_parseCommentAddToTag(*comments, j, &tag))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user