From: Russell Bryant Date: Thu, 7 Jun 2007 23:13:33 +0000 (+0000) Subject: Fix a problem where saying a character wouldn't properly break out when the caller... X-Git-Tag: 1.2.19~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c00062ff31affda5f8dce2f89fe359bf16598536;p=thirdparty%2Fasterisk.git 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) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@68351 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/say.c b/say.c index 077a057a35..459e181c98 100644 --- a/say.c +++ b/say.c @@ -62,7 +62,7 @@ int ast_say_character_str_full(struct ast_channel *chan, const char *str, const int num = 0; int res = 0; - while (str[num]) { + while (str[num] && !res) { fn = NULL; switch (str[num]) { case ('*'): @@ -142,7 +142,7 @@ int ast_say_phonetic_str_full(struct ast_channel *chan, const char *str, const c int num = 0; int res = 0; - while (str[num]) { + while (str[num] && !res) { fn = NULL; switch (str[num]) { case ('*'):