Commit e3155820 authored by Eric Wong's avatar Eric Wong

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
parent c208b05a
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment