]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix incorrect usage of strncasecmp... I really meant to use strcasecmp.
authorJoshua Colp <jcolp@digium.com>
Thu, 12 Mar 2009 16:56:20 +0000 (16:56 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 12 Mar 2009 16:56:20 +0000 (16:56 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@181664 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_musiconhold.c

index b034f4ddfc3715646ca4eabf454b63f96c4e470e..cd8bb3e1007c6df1420cd64a0ed7a50268e393c4 100644 (file)
@@ -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);