From: Tilghman Lesher Date: Wed, 23 Dec 2009 02:52:30 +0000 (+0000) Subject: Actually use tmp for something (brings trunk back into sync with 1.6 branches). X-Git-Tag: 11.0.0-beta1~3702 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1e0306a04b48243f0a616688567616bd7ca82da7;p=thirdparty%2Fasterisk.git 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 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 17afc5f9b6..a9b3d3d275 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, '&');