[sr-dev] [kamailio] acc_radius : added radius time mode (#378)

Daniel-Constantin Mierla notifications at github.com
Fri Oct 23 22:54:56 CEST 2015


Printing the float is not having any safety:

```
sprintf(smicrosec,"%f",tsecmicro);
```

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

```
sprintf(smicrosec,"%17.6f",tsecmicro);
```

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

---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/378#issuecomment-150690509
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20151023/0a9840be/attachment.html>


More information about the sr-dev mailing list