<p></p>
<p>The docs in str.h should be probably changed as well (here is documented that str is not null-terminated). Also probably a good idea to review other invocation of this utilty functions in the modules, now there might be double null-termination done somewhere (might be harmless in most cases, though).</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/2519#issuecomment-712818135">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZKN3D6P6TZQSSUATNTSLV77NANCNFSM4SX2XWVA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZLFBA6O72TCUIWOJR3SLV77NA5CNFSM4SX2XWVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFJ6L3VY.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/2519#issuecomment-712818135",
"url": "https://github.com/kamailio/kamailio/pull/2519#issuecomment-712818135",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>