<p></p>
<p><b>@miconda</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/kamailio/kamailio/pull/2904#discussion_r739215152">src/core/parser/parse_via.c</a>:</p>
<pre style='color:#555'>>      }
        if((tmp > buffer) && (tmp < end)) {
                LM_ERR("parse error, parsed so far:<%.*s>\n", (int)(tmp - buffer),
-                               ZSW(buffer));
+                               ZSW(ksr_buf_oneline(buffer, (int)strlen(buffer))));
</pre>
<p>Similar, <code>(int)(tmp - buffer)</code> instead of <code>(int)strlen(buffer)</code>.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/2904#pullrequestreview-793011939">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZPFLLXRQOBJ7O43X63UJKSWZANCNFSM5G2CZAXQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/ABO7UZJR246D2G2C7FKLUDTUJKSWZA5CNFSM5G2CZAX2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOF5CGNYY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/2904#pullrequestreview-793011939",
"url": "https://github.com/kamailio/kamailio/pull/2904#pullrequestreview-793011939",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>