Skip to content
Snippets Groups Projects
Commit 2fc5b92d authored by Joshua Colp's avatar Joshua Colp Committed by Gerrit Code Review
Browse files

Merge "app_voicemail.c: Fix compiler warning with IMAP build."

parents 99f998c6 26607e4e
Branches
Tags
No related merge requests found
...@@ -8928,7 +8928,7 @@ static int imap_delete_old_greeting (char *dir, struct vm_state *vms) ...@@ -8928,7 +8928,7 @@ static int imap_delete_old_greeting (char *dir, struct vm_state *vms)
{ {
char *file, *filename; char *file, *filename;
char *attachment; char *attachment;
char arg[10]; char arg[11];
int i; int i;
BODY* body; BODY* body;
int curr_mbox; int curr_mbox;
...@@ -8964,7 +8964,7 @@ static int imap_delete_old_greeting (char *dir, struct vm_state *vms) ...@@ -8964,7 +8964,7 @@ static int imap_delete_old_greeting (char *dir, struct vm_state *vms)
} }
filename = strsep(&attachment, "."); filename = strsep(&attachment, ".");
if (!strcmp(filename, file)) { if (!strcmp(filename, file)) {
sprintf(arg, "%d", i + 1); snprintf(arg, sizeof(arg), "%d", i + 1);
mail_setflag(vms->mailstream, arg, "\\DELETED"); mail_setflag(vms->mailstream, arg, "\\DELETED");
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment