<p>The size in pkg_malloc() needs to be increased, too -- from:</p>

<pre><code>    reg = pkg_malloc(len + 2 + 1);
</code></pre>

<p>to:</p>

<pre><code>    reg = pkg_malloc(len + 4 + 1);
</code></pre>

<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/703#issuecomment-231580428">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AF36ZX0IZR82yjYXOTHeCC1e_3NSG2iGks5qUMDygaJpZM4JIoZw">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZabZblkGmjo76G3SJMnwJH0omze3ks5qUMDygaJpZM4JIoZw.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/pull/703#issuecomment-231580428"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>