diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-03-14 01:56:03 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-03-14 01:56:03 +0000 |
commit | 70b3adc0706ebc030e46bc34d9541337af87e0cc (patch) | |
tree | 34253d30018fc26a36c4a013971bb5f71d3a2d61 /funcs | |
parent | 4a7797d9852eec0e6d6ecb6e004e248eb40f35ac (diff) |
Merged revisions 58880 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r58880 | tilghman | 2007-03-13 20:47:08 -0500 (Tue, 13 Mar 2007) | 3 lines
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/trunk@58881 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 af330e69c..3dbc078b0 100644 --- a/funcs/func_strings.c +++ b/funcs/func_strings.c @@ -681,7 +681,7 @@ static struct ast_custom_function strptime_function = { static int function_eval(struct ast_channel *chan, const 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"); |