diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-03-25 05:02:19 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-03-25 05:02:19 +0000 |
commit | 1e01cbdd9edde0a3c523f248f2ba34d8790d1b7c (patch) | |
tree | 0f6b1d7b545f09b7ae488722ff0b0aab7fa71bee /apps | |
parent | fb985f324220da908a0a9ec9082571d1534a56b2 (diff) |
Merged revisions 14830 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r14830 | tilghman | 2006-03-24 23:01:16 -0600 (Fri, 24 Mar 2006) | 2 lines
Fix incorrect size of zeroing (left over from when maxmsg was hardcoded at 100)
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@14837 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 928d7547d..c0abc2a4d 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -3882,7 +3882,7 @@ static int close_mailbox(struct vm_state *vms, struct ast_vm_user *vmu) return ERROR_LOCK_PATH; vms->curmsg = -1; - for (x=0;x < vmu->maxmsg;x++) { + for (x = 0; x < vmu->maxmsg; x++) { if (!vms->deleted[x] && (strcasecmp(vms->curbox, "INBOX") || !vms->heard[x])) { /* Save this message. It's not in INBOX or hasn't been heard */ make_file(vms->fn, sizeof(vms->fn), vms->curdir, x); @@ -3916,9 +3916,9 @@ static int close_mailbox(struct vm_state *vms, struct ast_vm_user *vmu) done: if (vms->deleted) - memset(vms->deleted, 0, sizeof(vms->deleted)); + memset(vms->deleted, 0, vmu->maxmsg * sizeof(int)); if (vms->heard) - memset(vms->heard, 0, sizeof(vms->heard)); + memset(vms->heard, 0, vmu->maxmsg * sizeof(int)); return 0; } |