Fix record app
authorMark Spencer <markster@digium.com>
Thu, 28 Oct 2004 22:14:08 +0000 (22:14 +0000)
committerMark Spencer <markster@digium.com>
Thu, 28 Oct 2004 22:14:08 +0000 (22:14 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4124 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_record.c

index 7c55e7a..f84baa3 100755 (executable)
@@ -105,6 +105,10 @@ static int record_exec(struct ast_channel *chan, void *data)
                ext = strchr(filename, '.');
                if (!ext)
                        ext = strchr(filename, ':');
+               if (ext) {
+                       *ext = '\0';
+                       ext++;
+               }
        }
        if (!ext) {
                ast_log(LOG_WARNING, "No extension specified to filename!\n");