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

Henning Westerholt notifications at github.com
Wed Dec 2 09:01:21 CET 2020


You need to use it correctly. ;-)

```
                                       str test = str_init("test        \n\n\n\n\n\n");
                                       LM_WARN("'%.*s, %d' before\n", test.len, test.s, test.len);
                                       trim(&test);
                                       LM_WARN("'%.*s, %d' after\n", test.len, test.s, test.len);

```

```
 0(1403811) WARNING: <core> [main.c:2860]: main(): 'test





, 14' before
 0(1403811) WARNING: <core> [main.c:2862]: main(): 'test, 4' after

```

-- 
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-737062210
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20201202/1c12809e/attachment.htm>


More information about the sr-dev mailing list