projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c163911
)
use ast_strdup instead of strdup
author
Luigi Rizzo
<rizzo@icir.org>
Thu, 30 Mar 2006 21:47:22 +0000
(21:47 +0000)
committer
Luigi Rizzo
<rizzo@icir.org>
Thu, 30 Mar 2006 21:47:22 +0000
(21:47 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16561
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
apps/app_macro.c
patch
|
blob
|
history
diff --git
a/apps/app_macro.c
b/apps/app_macro.c
index
42c6cf6
..
636daaa
100644
(file)
--- a/
apps/app_macro.c
+++ b/
apps/app_macro.c
@@
-188,7
+188,7
@@
static int macro_exec(struct ast_channel *chan, void *data)
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++;
}