diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-03-12 16:56:20 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-03-12 16:56:20 +0000 |
commit | a8e2fdcc4f933d7b7dff47911ad5d549f2a86e7a (patch) | |
tree | 5e88922090997425aee196bb3620a2c9009479bb | |
parent | 4c12637051c0a8cb03b04f71415736cd090026dc (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
-rw-r--r-- | res/res_musiconhold.c | 2 |
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); |