aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-10-28 22:14:08 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-10-28 22:14:08 +0000
commitcc877d2d6e0e59d5cad15c49dc0f63663ccf4e1f (patch)
tree2dfec74fa09d598c0fff2b994c4622fd4bf04870 /apps
parent2b12533e83b85b95587566c7b6355c24ff9baa0b (diff)
Fix record app
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4124 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_record.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_record.c b/apps/app_record.c
index 7c55e7a56..f84baa37a 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");