diff options
Diffstat (limited to 'funcs/func_math.c')
-rw-r--r-- | funcs/func_math.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/funcs/func_math.c b/funcs/func_math.c index 45036d5ad..663cc5daf 100644 --- a/funcs/func_math.c +++ b/funcs/func_math.c @@ -190,12 +190,12 @@ static int math(struct ast_channel *chan, const char *cmd, char *parse, return -1; } - if (sscanf(mvalue1, "%lf", &fnum1) != 1) { + if (sscanf(mvalue1, "%30lf", &fnum1) != 1) { ast_log(LOG_WARNING, "'%s' is not a valid number\n", mvalue1); return -1; } - if (sscanf(mvalue2, "%lf", &fnum2) != 1) { + if (sscanf(mvalue2, "%30lf", &fnum2) != 1) { ast_log(LOG_WARNING, "'%s' is not a valid number\n", mvalue2); return -1; } |