diff options
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 6c88ed32c..81cdd2d61 100644 --- a/apps/app_morsecode.c +++ b/apps/app_morsecode.c @@ -112,13 +112,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; } |