[asterisk-commits] file: branch 1.4 r76067 - /branches/1.4/res/res_convert.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jul 20 12:10:18 CDT 2007
Author: file
Date: Fri Jul 20 12:10:17 2007
New Revision: 76067
URL: http://svn.digium.com/view/asterisk?view=rev&rev=76067
Log:
(closes issue #10246)
Reported by: fkasumovic
Patches:
res_conver.patch uploaded by fkasumovic (license #101)
Use the last occurance of . to find the extension, not the first occurance.
Modified:
branches/1.4/res/res_convert.c
Modified: branches/1.4/res/res_convert.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/res/res_convert.c?view=diff&rev=76067&r1=76066&r2=76067
==============================================================================
--- branches/1.4/res/res_convert.c (original)
+++ branches/1.4/res/res_convert.c Fri Jul 20 12:10:17 2007
@@ -45,7 +45,10 @@
{
*name = *ext = filename;
- strsep(ext, ".");
+ if ((*ext = strrchr(filename, '.'))) {
+ **ext = '\0';
+ (*ext)++;
+ }
if (ast_strlen_zero(*name) || ast_strlen_zero(*ext))
return -1;
More information about the asterisk-commits
mailing list