diff options
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_voicemail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index b4b77c71d..d881fca21 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -3904,7 +3904,7 @@ static int close_mailbox(struct vm_state *vms, struct ast_vm_user *vmu) } /* Delete ALL remaining messages */ - nummsg = x; + nummsg = x - 1; for (x = vms->curmsg + 1; x <= nummsg; x++) { make_file(vms->fn, sizeof(vms->fn), vms->curdir, x); if (EXISTS(vms->curdir, x, vms->fn, NULL)) |