From: Mark Michelson Date: Wed, 20 Feb 2008 21:08:46 +0000 (+0000) Subject: Fix a crash due to the wrong variable being used when building a directory string. X-Git-Tag: 1.6.0-beta4~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d2d397f86114c65eef7da334c4e3c93ba1985bd8;p=thirdparty%2Fasterisk.git Fix a crash due to the wrong variable being used when building a directory string. (closes issue #12027) Reported by: jaroth Patches: forward.patch uploaded by jaroth (license 50) Tested by: jaroth git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@103902 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index ddf2431b0e..76b2805395 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -2827,7 +2827,7 @@ static int copy_message(struct ast_channel *chan, struct ast_vm_user *vmu, int i ast_copy_string(fromdir, dir, sizeof(fromdir)); make_file(frompath, sizeof(frompath), fromdir, msgnum); - make_dir(todir, sizeof(todir), recip->context, recip->mailbox, frombox); + make_dir(todir, sizeof(todir), recip->context, recip->mailbox, "INBOX"); if (vm_lock_path(todir)) return ERROR_LOCK_PATH;