diff options
author | Richard Mudgett <rmudgett@digium.com> | 2017-10-26 12:18:00 -0500 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2017-10-26 12:24:51 -0500 |
commit | 26607e4e3b5e4b56058e22944bfe29725bc12e7a (patch) | |
tree | 669824a2bac322731851cde0029629ee1bd2f2a1 /apps | |
parent | 4f2717bab0a6aecc38083b22eb96e3c847fa32fc (diff) |
app_voicemail.c: Fix compiler warning with IMAP build.
ASTERISK-27181
Change-Id: Ic4468b49860bd7f67e922baf4c9e96828c184d17
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index a9b8fe362..ecd423f86 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -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"); } } |