mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
(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. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76067 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -45,7 +45,10 @@ static int split_ext(char *filename, char **name, char **ext)
|
||||
{
|
||||
*name = *ext = filename;
|
||||
|
||||
strsep(ext, ".");
|
||||
if ((*ext = strrchr(filename, '.'))) {
|
||||
**ext = '\0';
|
||||
(*ext)++;
|
||||
}
|
||||
|
||||
if (ast_strlen_zero(*name) || ast_strlen_zero(*ext))
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user