From: Anthony Minessale II Date: Tue, 4 Jan 2005 18:26:17 +0000 (+0000) Subject: fix bug added to my code so I don X-Git-Tag: 1.2.0-beta1~1499 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=edd3fe50fb5c9abb9d1fbda8b67af752c7d73852;p=thirdparty%2Fasterisk.git fix bug added to my code so I don git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4659 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index e5bce131ad..8cee69be53 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)