[asterisk-commits] tilghman: trunk r58881 - in /trunk: ./ funcs/func_strings.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Mar 13 18:56:03 MST 2007


Author: tilghman
Date: Tue Mar 13 20:56:03 2007
New Revision: 58881

URL: http://svn.digium.com/view/asterisk?view=rev&rev=58881
Log:
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.

........

Modified:
    trunk/   (props changed)
    trunk/funcs/func_strings.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/funcs/func_strings.c
URL: http://svn.digium.com/view/asterisk/trunk/funcs/func_strings.c?view=diff&rev=58881&r1=58880&r2=58881
==============================================================================
--- trunk/funcs/func_strings.c (original)
+++ trunk/funcs/func_strings.c Tue Mar 13 20:56:03 2007
@@ -681,7 +681,7 @@
 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");



More information about the asterisk-commits mailing list