From 913f28a9c25b91a3b42028c33452d52699570c7c Mon Sep 17 00:00:00 2001
From: Mark Spencer <markster@digium.com>
Date: Thu, 28 Oct 2004 22:14:08 +0000
Subject: [PATCH] Fix record app

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4124 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 apps/app_record.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/apps/app_record.c b/apps/app_record.c
index 7c55e7a56c..f84baa37a6 100755
--- a/apps/app_record.c
+++ b/apps/app_record.c
@@ -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");
-- 
GitLab