<p>George Joseph <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/11490">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Sean Bright: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, but someone else must approve
George Joseph: Looks good to me, approved; Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">sig_pri: Address gcc9 issues<br><br>A few more format truncation issues addressed.<br><br>Change-Id: I047f373169caaca0eec4889d3c0e5e10f130017a<br>---<br>M channels/sig_pri.c<br>1 file changed, 5 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/channels/sig_pri.c b/channels/sig_pri.c</span><br><span>index e777f95..ecf160d 100644</span><br><span>--- a/channels/sig_pri.c</span><br><span>+++ b/channels/sig_pri.c</span><br><span>@@ -6048,11 +6048,14 @@</span><br><span> </span><br><span> /* Setup the user tag for party id's from this device for this call. */</span><br><span> if (pri->append_msn_to_user_tag) {</span><br><span style="color: hsl(0, 100%, 40%);">- snprintf(pri->pvts[chanpos]->user_tag,</span><br><span style="color: hsl(120, 100%, 40%);">+ int len = snprintf(pri->pvts[chanpos]->user_tag,</span><br><span> sizeof(pri->pvts[chanpos]->user_tag), "%s_%s",</span><br><span> pri->initial_user_tag,</span><br><span> pri->nodetype == PRI_NETWORK</span><br><span> ? plancallingnum : e->ring.callednum);</span><br><span style="color: hsl(120, 100%, 40%);">+ if (len >= sizeof(pri->pvts[chanpos]->user_tag)) {</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_log(LOG_WARNING, "user_tag '%s' truncated\n", pri->pvts[chanpos]->user_tag);</span><br><span style="color: hsl(120, 100%, 40%);">+ }</span><br><span> } else {</span><br><span> ast_copy_string(pri->pvts[chanpos]->user_tag,</span><br><span> pri->initial_user_tag, sizeof(pri->pvts[chanpos]->user_tag));</span><br><span>@@ -6447,7 +6450,7 @@</span><br><span> </span><br><span> if (e) {</span><br><span> int chanpos = -1;</span><br><span style="color: hsl(0, 100%, 40%);">- char cause_str[35];</span><br><span style="color: hsl(120, 100%, 40%);">+ char cause_str[36];</span><br><span> </span><br><span> if (pri->debug) {</span><br><span> ast_verbose("Span %d: Processing event %s(%d)\n",</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/11490">change 11490</a>. To unsubscribe, or for help writing mail filters, 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/c/asterisk/+/11490"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-Change-Id: I047f373169caaca0eec4889d3c0e5e10f130017a </div>
<div style="display:none"> Gerrit-Change-Number: 11490 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Sean Bright <sean.bright@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>