From 1e0306a04b48243f0a616688567616bd7ca82da7 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Wed, 23 Dec 2009 02:52:30 +0000 Subject: Actually use tmp for something (brings trunk back into sync with 1.6 branches). git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@236183 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_voicemail.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 17afc5f9b..a9b3d3d27 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -5259,7 +5259,8 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, struct leave_vm_ return -1; } - ext = ast_strdupa(ext); + ast_str_set(&tmp, 0, "%s", ext); + ext = ast_str_buffer(tmp); if ((context = strchr(ext, '@'))) { *context++ = '\0'; tmpptr = strchr(context, '&'); -- cgit v1.2.3