replace ast_safe_string_alloc() with asprintf()

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48497 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.0
Luigi Rizzo 19 years ago
parent 286f02bf40
commit a736605bf4

@ -462,7 +462,7 @@ static struct ast_channel *features_new(struct feature_pvt *p, int state, int in
for (x=1;x<4;x++) {
if (b2)
free(b2);
b2 = ast_safe_string_alloc("Feature/%s/%s-%d", p->tech, p->dest, x);
asprintf(&b2, "Feature/%s/%s-%d", p->tech, p->dest, x);
for (y=0;y<3;y++) {
if (y == index)
continue;

Loading…
Cancel
Save