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;


_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

svn-commits mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/svn-commits

Reply via email to