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 4787e0dee..45d50b48a 100644 --- a/funcs/func_strings.c +++ b/funcs/func_strings.c @@ -506,7 +506,7 @@ static struct ast_custom_function strptime_function = { static int function_eval(struct ast_channel *chan, char *cmd, char *data, char *buf, size_t len) { - buf[0] = '\0'; + memset(buf, 0, len); if (ast_strlen_zero(data)) { ast_log(LOG_WARNING, "EVAL requires an argument: EVAL(<string>)\n"); |