summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2006-12-15 15:40:57 +0000
committerLuigi Rizzo <rizzo@icir.org>2006-12-15 15:40:57 +0000
commit7db228ac9526387d318b9de293693f75dd9a8397 (patch)
treed36c3352047a8053e2321bdd478d5141ac9e79c2
parenta736605bf405979223996c8f6a2bd8b236b0dfb6 (diff)
replace ast_safe_string_alloc() with asprintf()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48498 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--channels/chan_zap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 394c12bb2..127b0ed03 100644
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -5513,13 +5513,13 @@ static struct ast_channel *zt_new(struct zt_pvt *i, int state, int startpbx, int
free(b2);
#ifdef HAVE_PRI
if (i->bearer || (i->pri && (i->sig == SIG_FXSKS)))
- b2 = ast_safe_string_alloc("Zap/%d:%d-%d", i->pri->trunkgroup, i->channel, y);
+ asprintf(&b2, "Zap/%d:%d-%d", i->pri->trunkgroup, i->channel, y);
else
#endif
if (i->channel == CHAN_PSEUDO)
- b2 = ast_safe_string_alloc("Zap/pseudo-%d", ast_random());
+ asprintf(&b2, "Zap/pseudo-%ld", ast_random());
else
- b2 = ast_safe_string_alloc("Zap/%d-%d", i->channel, y);
+ asprintf(&b2, "Zap/%d-%d", i->channel, y);
for (x = 0; x < 3; x++) {
if ((index != x) && i->subs[x].owner && !strcasecmp(b2, i->subs[x].owner->name))
break;