[asterisk-commits] file: trunk r76070 - in /trunk: ./ res/res_convert.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jul 20 12:11:40 CDT 2007


Author: file
Date: Fri Jul 20 12:11:39 2007
New Revision: 76070

URL: http://svn.digium.com/view/asterisk?view=rev&rev=76070
Log:
Merged revisions 76067 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r76067 | file | 2007-07-20 14:10:17 -0300 (Fri, 20 Jul 2007) | 6 lines

(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:
    trunk/   (props changed)
    trunk/res/res_convert.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/res/res_convert.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_convert.c?view=diff&rev=76070&r1=76069&r2=76070
==============================================================================
--- trunk/res/res_convert.c (original)
+++ trunk/res/res_convert.c Fri Jul 20 12:11:39 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