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.2@43699
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
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);
+
vmu = malloc(sizeof(struct ast_vm_user));
if (vmu) {
memset(vmu, 0, sizeof(struct ast_vm_user));