[asterisk-commits] kmoore: branch 1.8 r370697 - /branches/1.8/utils/extconf.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jul 31 21:25:13 CDT 2012


Author: kmoore
Date: Tue Jul 31 21:25:09 2012
New Revision: 370697

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=370697
Log:
Revert alloca changes for utils

These changes were a tad overzealous in the utils directory.
Unfortunately, these don't compile with a "make".

Modified:
    branches/1.8/utils/extconf.c

Modified: branches/1.8/utils/extconf.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/utils/extconf.c?view=diff&rev=370697&r1=370696&r2=370697
==============================================================================
--- branches/1.8/utils/extconf.c (original)
+++ branches/1.8/utils/extconf.c Tue Jul 31 21:25:09 2012
@@ -5812,7 +5812,7 @@
 			whereweare += (len + 3);
 
 			if (!var)
-				var = ast_alloca(VAR_BUF_SIZE);
+				var = alloca(VAR_BUF_SIZE);
 
 			/* Store variable name (and truncate) */
 			ast_copy_string(var, vars, len + 1);
@@ -5820,7 +5820,7 @@
 			/* Substitute if necessary */
 			if (needsub) {
 				if (!ltmp)
-					ltmp = ast_alloca(VAR_BUF_SIZE);
+					ltmp = alloca(VAR_BUF_SIZE);
 
 				memset(ltmp, 0, VAR_BUF_SIZE);
 				pbx_substitute_variables_helper_full(c, headp, var, ltmp, VAR_BUF_SIZE - 1);
@@ -5830,7 +5830,7 @@
 			}
 
 			if (!workspace)
-				workspace = ast_alloca(VAR_BUF_SIZE);
+				workspace = alloca(VAR_BUF_SIZE);
 
 			workspace[0] = '\0';
 
@@ -5887,7 +5887,7 @@
 			whereweare += (len + 3);
 
 			if (!var)
-				var = ast_alloca(VAR_BUF_SIZE);
+				var = alloca(VAR_BUF_SIZE);
 
 			/* Store variable name (and truncate) */
 			ast_copy_string(var, vars, len + 1);
@@ -5895,7 +5895,7 @@
 			/* Substitute if necessary */
 			if (needsub) {
 				if (!ltmp)
-					ltmp = ast_alloca(VAR_BUF_SIZE);
+					ltmp = alloca(VAR_BUF_SIZE);
 
 				memset(ltmp, 0, VAR_BUF_SIZE);
 				pbx_substitute_variables_helper_full(c, headp, var, ltmp, VAR_BUF_SIZE - 1);




More information about the asterisk-commits mailing list