aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_musiconhold.c
diff options
context:
space:
mode:
authoranthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-04 18:26:17 +0000
committeranthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-04 18:26:17 +0000
commitdbc393200bd51a2ce8e68faf82ca5f7ce8aa3f44 (patch)
tree9d53c20492d3ba6e5ff8a3c7003e581c3d6ac750 /res/res_musiconhold.c
parentc99486dda4c952df7f4649c550a41f016aaea270 (diff)
fix bug added to my code so I don
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4659 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_musiconhold.c')
-rwxr-xr-xres/res_musiconhold.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index e5bce131a..8cee69be5 100755
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -713,8 +713,10 @@ static int moh_scan_files(struct mohclass *class) {
if (!S_ISREG(statbuf.st_mode))
continue;
- if ((ext = strrchr(filepath, '.')))
+ if ((ext = strrchr(filepath, '.'))) {
*ext = '\0';
+ ext++;
+ }
/* check to see if this file's format can be opened */
if (ast_fileexists(filepath, ext, NULL) == -1)