aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins/mp3_plugin.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-09-20 16:07:54 -0700
committerEric Wong <normalperson@yhbt.net>2008-09-20 16:07:54 -0700
commit95817fee8a01f1cdef2f0fb66d351dd031b91c7e (patch)
tree49bb0928d88ea814784d94b3bf8b653ea9b5a5d4 /src/inputPlugins/mp3_plugin.c
parent5a42e7362b3745fb59f0aa49bab624f7fba83eff (diff)
downloadmpd-95817fee8a01f1cdef2f0fb66d351dd031b91c7e.tar.gz
mpd-95817fee8a01f1cdef2f0fb66d351dd031b91c7e.tar.xz
mpd-95817fee8a01f1cdef2f0fb66d351dd031b91c7e.zip
start using prefixcmp()
LOC reduction and less noise makes things easier for tired old folks to follow.
Diffstat (limited to '')
-rw-r--r--src/inputPlugins/mp3_plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inputPlugins/mp3_plugin.c b/src/inputPlugins/mp3_plugin.c
index a9dad8904..1d6333fd6 100644
--- a/src/inputPlugins/mp3_plugin.c
+++ b/src/inputPlugins/mp3_plugin.c
@@ -616,7 +616,7 @@ static int parse_lame(struct lame *lame, struct mad_bitptr *ptr, int *bitlen)
/* This is technically incorrect, since the encoder might not be lame.
* But there's no other way to determine if this is a lame tag, and we
* wouldn't want to go reading a tag that's not there. */
- if (strncmp(lame->encoder, "LAME", 4) != 0)
+ if (prefixcmp(lame->encoder, "LAME"))
return 0;
if (sscanf(lame->encoder+4, "%u.%u",