From: Joshua Colp Date: Tue, 12 Aug 2014 11:18:17 +0000 (+0000) Subject: app_voicemail: Fix the "test_voicemail_vm_info" unit test. X-Git-Tag: 14.0.0-beta1~1760 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca61f8ac82c8ef12890b3e0b8625035a6b109ed7;p=thirdparty%2Fasterisk.git app_voicemail: Fix the "test_voicemail_vm_info" unit test. ........ Merged revisions 420856 from http://svn.asterisk.org/svn/asterisk/branches/13 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@420858 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 439173049f..c3cf36f242 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -14542,7 +14542,7 @@ AST_TEST_DEFINE(test_voicemail_vm_info) populate_defaults(vmu); - ast_copy_string(vmu->email, "vm-info-test@example.net", sizeof(vmu->email)); + vmu->email = ast_strdup("vm-info-test@example.net"); ast_copy_string(vmu->fullname, "Test Framework Mailbox", sizeof(vmu->fullname)); ast_copy_string(vmu->pager, "vm-info-pager-test@example.net", sizeof(vmu->pager)); ast_copy_string(vmu->language, "en", sizeof(vmu->language));