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:
parent
c208b05a0e
commit
e31558206a
@ -179,8 +179,8 @@ static MpdTag * oggCommentsParse(char ** comments) {
|
||||
MpdTag * tag = NULL;
|
||||
|
||||
while(*comments) {
|
||||
unsigned int j;
|
||||
for (j = TAG_NUM_OF_ITEM_TYPES; j--; ) {
|
||||
int j;
|
||||
for (j = TAG_NUM_OF_ITEM_TYPES - 1; --j >= 0; ) {
|
||||
if (ogg_parseCommentAddToTag(*comments, j, &tag))
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user