[asterisk-commits] russell: branch 1.2 r68351 - /branches/1.2/say.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Jun 7 16:13:34 MST 2007


Author: russell
Date: Thu Jun  7 18:13:33 2007
New Revision: 68351

URL: http://svn.digium.com/view/asterisk?view=rev&rev=68351
Log:
Fix a problem where saying a character wouldn't properly break out when the caller pressed '#'
(issue #8113, reported by patbaker82, patch from jamesgolovich (hey, long time no see!) and patbaker82)

Modified:
    branches/1.2/say.c

Modified: branches/1.2/say.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/say.c?view=diff&rev=68351&r1=68350&r2=68351
==============================================================================
--- branches/1.2/say.c (original)
+++ branches/1.2/say.c Thu Jun  7 18:13:33 2007
@@ -62,7 +62,7 @@
 	int num = 0;
 	int res = 0;
 
-	while (str[num]) {
+	while (str[num] && !res) {
 		fn = NULL;
 		switch (str[num]) {
 		case ('*'):
@@ -142,7 +142,7 @@
 	int num = 0;
 	int res = 0;
 
-	while (str[num]) {
+	while (str[num] && !res) {
 		fn = NULL;
 		switch (str[num]) {
 		case ('*'):



More information about the asterisk-commits mailing list