app_voicemail.c: Fix compiler warning with IMAP build.

ASTERISK-27181

Change-Id: Ic4468b49860bd7f67e922baf4c9e96828c184d17
This commit is contained in:
Richard Mudgett 2017-10-26 12:18:00 -05:00
parent 4f2717bab0
commit 26607e4e3b
1 changed files with 2 additions and 2 deletions

View File

@ -8928,7 +8928,7 @@ static int imap_delete_old_greeting (char *dir, struct vm_state *vms)
{
char *file, *filename;
char *attachment;
char arg[10];
char arg[11];
int i;
BODY* body;
int curr_mbox;
@ -8964,7 +8964,7 @@ static int imap_delete_old_greeting (char *dir, struct vm_state *vms)
}
filename = strsep(&attachment, ".");
if (!strcmp(filename, file)) {
sprintf(arg, "%d", i + 1);
snprintf(arg, sizeof(arg), "%d", i + 1);
mail_setflag(vms->mailstream, arg, "\\DELETED");
}
}