Allow mixmon names to have dots (bug #5607)
authorMark Spencer <markster@digium.com>
Sun, 6 Nov 2005 05:13:45 +0000 (05:13 +0000)
committerMark Spencer <markster@digium.com>
Sun, 6 Nov 2005 05:13:45 +0000 (05:13 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6973 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_mixmonitor.c

index cbd51db..4391cfb 100755 (executable)
@@ -159,7 +159,7 @@ static void *mixmonitor_thread(void *obj)
        oflags = O_CREAT|O_WRONLY;
        oflags |= ast_test_flag(mixmonitor, MUXFLAG_APPEND) ? O_APPEND : O_TRUNC;
                
-       if ((ext = strchr(mixmonitor->filename, '.'))) {
+       if ((ext = strrchr(mixmonitor->filename, '.'))) {
                *(ext++) = '\0';
        } else {
                ext = "raw";