[svn-commits] kpfleming: branch 1.4 r49710 -
/branches/1.4/main/manager.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Fri Jan 5 16:31:39 MST 2007
Author: kpfleming
Date: Fri Jan 5 17:31:38 2007
New Revision: 49710
URL: http://svn.digium.com/view/asterisk?view=rev&rev=49710
Log:
ast_func_read() needs a writable copy of the function name to be passed
Modified:
branches/1.4/main/manager.c
Modified: branches/1.4/main/manager.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/manager.c?view=diff&rev=49710&r1=49709&r2=49710
==============================================================================
--- branches/1.4/main/manager.c (original)
+++ branches/1.4/main/manager.c Fri Jan 5 17:31:38 2007
@@ -1368,7 +1368,9 @@
}
if (varname[strlen(varname) - 1] == ')') {
- ast_func_read(c, (char *) varname, workspace, sizeof(workspace));
+ char *copy = ast_strdupa(varname);
+
+ ast_func_read(c, copy, workspace, sizeof(workspace));
} else {
pbx_retrieve_variable(c, varname, &varval, workspace, sizeof(workspace), NULL);
}
More information about the svn-commits
mailing list