From: Russell Bryant Date: Tue, 26 Sep 2006 20:24:39 +0000 (+0000) Subject: Merged revisions 43699 via svnmerge from X-Git-Tag: 1.4.0-beta3~163 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6cb2b9fedbe797b9e4bfbf1c6ba73d24db8befd2;p=thirdparty%2Fasterisk.git Merged revisions 43699 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r43699 | russell | 2006-09-26 16:23:15 -0400 (Tue, 26 Sep 2006) | 6 lines When parsing the sections of voicemail.conf that contain mailbox definitions, don't introduce a length limit on the definition by using a 256 byte temporary storage buffer. Instead, make the temporary buffer just as big as it needs to be to hold the entire mailbox definition. (fixes BE-68) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43700 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index a232f38fe8..29bfbbb0c6 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -6533,12 +6533,13 @@ static struct ast_vm_user *find_or_create(char *context, char *mbox) static int append_mailbox(char *context, char *mbox, char *data) { /* Assumes lock is already held */ - char tmp[256] = ""; + char *tmp; char *stringp; char *s; struct ast_vm_user *vmu; - ast_copy_string(tmp, data, sizeof(tmp)); + tmp = ast_strdupa(data); + if ((vmu = find_or_create(context, mbox))) { populate_defaults(vmu);