[sr-dev] [kamailio/kamailio] lost: do not parse locationURI with indention spaces (#2569)

Daniel-Constantin Mierla notifications at github.com
Wed Dec 2 10:00:25 CET 2020


Clarifying further for the devs dealing first time with `str` structure: the functions working with them do not change the content of the input value, it sets (shifts) the start pointer `str.s` and adjusts the length `str.len`.

Also, in many cases the str.s does not point to a zero-terminated string value of length str.len, that's why printing it in logs must be done with `%.*s` which requires first to provide the lenght. There are acases when str.s points to a zero-terminated string, but the developer has to track the origin of the value and be sure it is zero-terminated.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2569#issuecomment-737090928
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20201202/a4cebaf2/attachment.htm>


More information about the sr-dev mailing list