diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-03-14 01:47:08 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-03-14 01:47:08 +0000 |
commit | 0c424af77eb66420d5915efc0554a389e6c3bd76 (patch) | |
tree | 3d3a84038b7a4cf2638df077b79ed7236a2bb96d /funcs | |
parent | 83ec303298c0ada7be104325319fcb3e98135ff2 (diff) |
Issue 9162 - pbx_substitute_variables_helper assumes the buffer is initialized
to all zeroes. This fixes a case where it wasn't.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@58880 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs')
-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"); |