[asterisk-commits] trunk r16561 - /trunk/apps/app_macro.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Mar 30 14:47:24 MST 2006


Author: rizzo
Date: Thu Mar 30 15:47:22 2006
New Revision: 16561

URL: http://svn.digium.com/view/asterisk?rev=16561&view=rev
Log:
use ast_strdup instead of strdup


Modified:
    trunk/apps/app_macro.c

Modified: trunk/apps/app_macro.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_macro.c?rev=16561&r1=16560&r2=16561&view=diff
==============================================================================
--- trunk/apps/app_macro.c (original)
+++ trunk/apps/app_macro.c Thu Mar 30 15:47:22 2006
@@ -188,7 +188,7 @@
   		snprintf(varname, sizeof(varname), "ARG%d", argc);
 		s = pbx_builtin_getvar_helper(chan, varname);
 		if (s)
-			oldargs[argc] = strdup(s);
+			oldargs[argc] = ast_strdup(s);
 		pbx_builtin_setvar_helper(chan, varname, cur);
 		argc++;
 	}



More information about the asterisk-commits mailing list