<p>Richard Mudgett has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/6926">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">app_voicemail.c: Fix compiler warning with IMAP build.<br><br>ASTERISK-27181<br><br>Change-Id: Ic4468b49860bd7f67e922baf4c9e96828c184d17<br>---<br>M apps/app_voicemail.c<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/26/6926/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c<br>index a9b8fe3..ecd423f 100644<br>--- a/apps/app_voicemail.c<br>+++ b/apps/app_voicemail.c<br>@@ -8928,7 +8928,7 @@<br> {<br> char *file, *filename;<br> char *attachment;<br>- char arg[10];<br>+ char arg[11];<br> int i;<br> BODY* body;<br> int curr_mbox;<br>@@ -8964,7 +8964,7 @@<br> }<br> filename = strsep(&attachment, ".");<br> if (!strcmp(filename, file)) {<br>- sprintf(arg, "%d", i + 1);<br>+ snprintf(arg, sizeof(arg), "%d", i + 1);<br> mail_setflag(vms->mailstream, arg, "\\DELETED");<br> }<br> }<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6926">change 6926</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/6926"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ic4468b49860bd7f67e922baf4c9e96828c184d17 </div>
<div style="display:none"> Gerrit-Change-Number: 6926 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Richard Mudgett <rmudgett@digium.com> </div>