aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins/oggvorbis_plugin.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-06-04 11:36:02 +0000
committerEric Wong <normalperson@yhbt.net>2006-06-04 11:36:02 +0000
commitab069b7e594b4de202cd4b0a083379397e278339 (patch)
tree3e4a5dd6a3c2d78179260d51c966398a3b27fa5e /src/inputPlugins/oggvorbis_plugin.c
parent02975fca003e972b72aa653b60748f407cee423c (diff)
downloadmpd-ab069b7e594b4de202cd4b0a083379397e278339.tar.gz
mpd-ab069b7e594b4de202cd4b0a083379397e278339.tar.xz
mpd-ab069b7e594b4de202cd4b0a083379397e278339.zip
gcc 2.95 compatibility fixes
git-svn-id: https://svn.musicpd.org/mpd/trunk@4244 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/inputPlugins/oggvorbis_plugin.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/inputPlugins/oggvorbis_plugin.c b/src/inputPlugins/oggvorbis_plugin.c
index 6881b9c41..224ac2f36 100644
--- a/src/inputPlugins/oggvorbis_plugin.c
+++ b/src/inputPlugins/oggvorbis_plugin.c
@@ -161,13 +161,14 @@ static inline unsigned int ogg_parseCommentAddToTag(char * comment,
unsigned int itemType, MpdTag ** tag)
{
const char * needle;
+ unsigned int len;
switch (itemType) {
case TAG_ITEM_TRACK: needle = VORBIS_COMMENT_TRACK_KEY; break;
case TAG_ITEM_DISC: needle = VORBIS_COMMENT_DISC_KEY; break;
default: needle = mpdTagItemKeys[itemType];
}
- unsigned int len = strlen(needle);
-
+ len = strlen(needle);
+
if(strncasecmp(comment, needle, len) == 0 && *(comment+len) == '=') {
if (!*tag)
*tag = newMpdTag();