<p>Printing the float is not having any safety:</p>

<pre><code>sprintf(smicrosec,"%f",tsecmicro);
</code></pre>

<p>Variable smicrosec has the size 18, I assume you wanted to have <strong>10digits . 6digits</strong>, but then enforce it because %f can have exponential representation, where the lenght can differ from system to system. Use:</p>

<pre><code>sprintf(smicrosec,"%17.6f",tsecmicro);
</code></pre>

<p>Push this as an extra patch to your branch to show in pull request. Also, add the documentation and the PR will be merged.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/pull/378#issuecomment-150690509">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36Zc4cz7lgKs33LjAfxx2zQt9xia0qks5o-pYggaJpZM4GUWYa.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/378#issuecomment-150690509"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>