aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins/oggvorbis_plugin.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-04-18 06:17:48 +0000
committerEric Wong <normalperson@yhbt.net>2006-04-18 06:17:48 +0000
commite31558206af472c70cac23c493c28aac8e196b6f (patch)
tree671278e7c95faf0bfa1f308758c90ce4f014c7a6 /src/inputPlugins/oggvorbis_plugin.c
parentc208b05a0e9f2bfb0ae02410f34cf3431cab4dde (diff)
downloadmpd-e31558206af472c70cac23c493c28aac8e196b6f.tar.gz
mpd-e31558206af472c70cac23c493c28aac8e196b6f.tar.xz
mpd-e31558206af472c70cac23c493c28aac8e196b6f.zip
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
Diffstat (limited to '')
-rw-r--r--src/inputPlugins/oggvorbis_plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inputPlugins/oggvorbis_plugin.c b/src/inputPlugins/oggvorbis_plugin.c
index 63bac411e..5bd65073a 100644
--- a/src/inputPlugins/oggvorbis_plugin.c
+++ b/src/inputPlugins/oggvorbis_plugin.c
@@ -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;
}