[svn-commits] tilghman: branch 1.4 r58880 -
/branches/1.4/funcs/func_strings.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Tue Mar 13 18:47:09 MST 2007
Author: tilghman
Date: Tue Mar 13 20:47:08 2007
New Revision: 58880
URL: http://svn.digium.com/view/asterisk?view=rev&rev=58880
Log:
Issue 9162 - pbx_substitute_variables_helper assumes the buffer is initialized
to all zeroes. This fixes a case where it wasn't.
Modified:
branches/1.4/funcs/func_strings.c
Modified: branches/1.4/funcs/func_strings.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/funcs/func_strings.c?view=diff&rev=58880&r1=58879&r2=58880
==============================================================================
--- branches/1.4/funcs/func_strings.c (original)
+++ branches/1.4/funcs/func_strings.c Tue Mar 13 20:47:08 2007
@@ -506,7 +506,7 @@
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");
More information about the svn-commits
mailing list