[sr-dev] [kamailio] Update functions.c (#319)

Daniel-Constantin Mierla notifications at github.com
Wed Sep 9 08:48:31 CEST 2015


stream.buf is dynamic allocated memory and by changing its value it will crash when freeing it, because it is no longer pointing to the start of allocated memory. If you want to strip empty chars at beginning, then do it without changing the initial value of stream.buf -- e.g., use another variable to copy the value for stream.buf and use that var for moving forward to first non-empty-char.

Also, format the commit message as per guidelines at:

  * http://www.kamailio.org/wiki/devel/github-contributions

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


More information about the sr-dev mailing list