diff options
Diffstat (limited to 'funcs/func_strings.c')
-rw-r--r-- | funcs/func_strings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/funcs/func_strings.c b/funcs/func_strings.c index 0aaf3fc4b..9ce8b08d2 100644 --- a/funcs/func_strings.c +++ b/funcs/func_strings.c @@ -169,7 +169,7 @@ static char *acf_strftime(struct ast_channel *chan, char *cmd, char *data, char epoch = strsep(&format, "|"); timezone = strsep(&format, "|"); - if (ast_strlen_zero(epoch) || !sscanf(epoch, "%ld", &epochi)) { + if (ast_strlen_zero(epoch) || !sscanf(epoch, "%30ld", &epochi)) { struct timeval tv = ast_tvnow(); epochi = tv.tv_sec; } |