diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-08-10 20:14:34 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-08-10 20:14:34 +0000 |
commit | fea057f6474ed94062cf3cbf4ad096bba62d6832 (patch) | |
tree | e189c9a20520ae30231ac1c6573db5f3a289b84c /apps/app_morsecode.c | |
parent | 247584d4d4239bc8da24b94e97211296de846046 (diff) |
Changes to make 1.4.26 into 1.4.26.1v1.4.26.1
git-svn-id: http://svn.digium.com/svn/asterisk/tags/1.4.26.1@211596 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_morsecode.c')
-rw-r--r-- | apps/app_morsecode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_morsecode.c b/apps/app_morsecode.c index aec946a09..8be4861b0 100644 --- a/apps/app_morsecode.c +++ b/apps/app_morsecode.c @@ -123,13 +123,13 @@ static int morsecode_exec(struct ast_channel *chan, void *data) /* Use variable MORESEDITLEN, if set (else 80) */ ditlenc = pbx_builtin_getvar_helper(chan, "MORSEDITLEN"); - if (ast_strlen_zero(ditlenc) || (sscanf(ditlenc, "%d", &ditlen) != 1)) { + if (ast_strlen_zero(ditlenc) || (sscanf(ditlenc, "%30d", &ditlen) != 1)) { ditlen = 80; } /* Use variable MORSETONE, if set (else 800) */ tonec = pbx_builtin_getvar_helper(chan, "MORSETONE"); - if (ast_strlen_zero(tonec) || (sscanf(tonec, "%d", &tone) != 1)) { + if (ast_strlen_zero(tonec) || (sscanf(tonec, "%30d", &tone) != 1)) { tone = 800; } |