diff options
author | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-26 21:01:50 +0000 |
---|---|---|
committer | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-26 21:01:50 +0000 |
commit | c0c87c56a59bab183e130ebb990850f326285ed0 (patch) | |
tree | 431c816c631e52ebd69086b9eeefd20fab745aee /apps | |
parent | abe3b353d67fb7298b7c3c5dc0974da2b4f0acac (diff) |
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@43720 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 b73887f7f..70c9a1729 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -5545,12 +5545,13 @@ static int vm_exec(struct ast_channel *chan, void *data) 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)); |