aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_musiconhold.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-03-12 16:56:20 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-03-12 16:56:20 +0000
commita8e2fdcc4f933d7b7dff47911ad5d549f2a86e7a (patch)
tree5e88922090997425aee196bb3620a2c9009479bb /res/res_musiconhold.c
parent4c12637051c0a8cb03b04f71415736cd090026dc (diff)
Fix incorrect usage of strncasecmp... I really meant to use strcasecmp.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@181664 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_musiconhold.c')
-rw-r--r--res/res_musiconhold.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index b034f4ddf..cd8bb3e10 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -557,7 +557,7 @@ static void *monmp3thread(void *data)
}
res = 8 * MOH_MS_INTERVAL; /* 8 samples per millisecond */
}
- if ((strncasecmp(class->dir, "http://", 7) && strncasecmp(class->dir, "nodir")) && AST_LIST_EMPTY(&class->members))
+ if ((strncasecmp(class->dir, "http://", 7) && strcasecmp(class->dir, "nodir")) && AST_LIST_EMPTY(&class->members))
continue;
/* Read mp3 audio */
len = ast_codec_get_len(class->format, res);