[svn-commits] kmoore: trunk r399405 - in /trunk: ./ main/abstract_jb.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Wed Sep 18 15:04:16 CDT 2013
Author: kmoore
Date: Wed Sep 18 15:04:14 2013
New Revision: 399405
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=399405
Log:
Fix jitter buffer log file creation
This adjusts '/'-to-'#' replacement to replace all instances of '/'
instead of just the first to ensure that the jitter buffer log file
gets the correct name as per Richard Kenner's suggestion.
(closes issue ASTERISK-21036)
Reported by: Richard Kenner
........
Merged revisions 399402 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 399403 from http://svn.asterisk.org/svn/asterisk/branches/11
........
Merged revisions 399404 from http://svn.asterisk.org/svn/asterisk/branches/12
Modified:
trunk/ (props changed)
trunk/main/abstract_jb.c
Propchange: trunk/
------------------------------------------------------------------------------
--- branch-12-merged (original)
+++ branch-12-merged Wed Sep 18 15:04:14 2013
@@ -1,1 +1,1 @@
-/branches/12:1-398558,398560-398577,398579-399100,399136,399146,399160,399197,399207,399225,399237,399247,399257,399268,399283,399294,399339,399365,399376
+/branches/12:1-398558,398560-398577,398579-399100,399136,399146,399160,399197,399207,399225,399237,399247,399257,399268,399283,399294,399339,399365,399376,399404
Modified: trunk/main/abstract_jb.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/abstract_jb.c?view=diff&rev=399405&r1=399404&r2=399405
==============================================================================
--- trunk/main/abstract_jb.c (original)
+++ trunk/main/abstract_jb.c Wed Sep 18 15:04:14 2013
@@ -446,7 +446,7 @@
int safe_fd;
snprintf(name2, sizeof(name2), "%s", ast_channel_name(chan));
- if ((tmp = strchr(name2, '/'))) {
+ while ((tmp = strchr(name2, '/'))) {
*tmp = '#';
}
@@ -454,7 +454,7 @@
ast_assert(bridged != NULL);
snprintf(name1, sizeof(name1), "%s", ast_channel_name(bridged));
- if ((tmp = strchr(name1, '/'))) {
+ while ((tmp = strchr(name1, '/'))) {
*tmp = '#';
}
More information about the svn-commits
mailing list