[svn-commits] murf: branch 1.4 r79363 - /branches/1.4/pbx/pbx_ael.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon Aug 13 17:40:07 CDT 2007
Author: murf
Date: Mon Aug 13 17:40:06 2007
New Revision: 79363
URL: http://svn.digium.com/view/asterisk?view=rev&rev=79363
Log:
memset really, really needs to be used here.
Modified:
branches/1.4/pbx/pbx_ael.c
Modified: branches/1.4/pbx/pbx_ael.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/pbx/pbx_ael.c?view=diff&rev=79363&r1=79362&r2=79363
==============================================================================
--- branches/1.4/pbx/pbx_ael.c (original)
+++ branches/1.4/pbx/pbx_ael.c Mon Aug 13 17:40:06 2007
@@ -3568,7 +3568,7 @@
{
struct ael_priority *pr;
char *label=0;
- char realext[256]="";
+ char realext[AST_MAX_EXTENSION];
if (!exten) {
ast_log(LOG_WARNING, "This file is Empty!\n" );
return;
@@ -3576,7 +3576,7 @@
do {
struct ael_priority *last = 0;
- realext[0] = 0; /* make sure this is properly initialized */
+ memset(realext, '\0', sizeof(realext));
pbx_substitute_variables_helper(NULL, exten->name, realext, sizeof(realext) - 1);
if (exten->hints) {
if (ast_add_extension2(exten->context, 0 /*no replace*/, realext, PRIORITY_HINT, NULL, exten->cidmatch,
More information about the svn-commits
mailing list