<p>It has to be <code>%.*s</code>, you used <code>*</code> before the <code>.</code> -- also you do not need that expression with address of the first char, just give <code>session->ip_addr.s</code> instead of <code>&session->ip_addr.s[0]</code>, it should avoid array access and get address of it -- probably there is not much difference in performance, but I find it easier to follow up.</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/2045?email_source=notifications&email_token=ABO7UZOTGWOWVHDGIH3XF23QGOYYBA5CNFSM4IPMS3X2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5EAUGY#issuecomment-524814875">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZKZDTGXNG3JDTAMBZDQGOYYBANCNFSM4IPMS3XQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZI4UPRFCBF6EZCH6U3QGOYYBA5CNFSM4IPMS3X2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5EAUGY.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/2045?email_source=notifications\u0026email_token=ABO7UZOTGWOWVHDGIH3XF23QGOYYBA5CNFSM4IPMS3X2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5EAUGY#issuecomment-524814875",
"url": "https://github.com/kamailio/kamailio/pull/2045?email_source=notifications\u0026email_token=ABO7UZOTGWOWVHDGIH3XF23QGOYYBA5CNFSM4IPMS3X2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5EAUGY#issuecomment-524814875",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>