diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-26 20:26:00 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-26 20:26:00 +0000 |
commit | c7f0265b5f8f0b6447a4051d76462ad74f63277d (patch) | |
tree | cf8e09b487ab60d5d3f45de02b7f3db179de810b /apps | |
parent | 6168fe18003d6e4d29a8b1d75feaeef4d92006d0 (diff) |
Merged revisions 43700 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r43700 | russell | 2006-09-26 16:24:39 -0400 (Tue, 26 Sep 2006) | 14 lines
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: http://svn.digium.com/svn/asterisk/trunk@43701 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index e7c83dc7c..c8098b96e 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -6506,12 +6506,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); |