[sr-dev] [kamailio/kamailio] core: add new param sip_parser_oneline (PR #2904)

Daniel-Constantin Mierla notifications at github.com
Fri Oct 29 15:03:55 CEST 2021

@miconda commented on this pull request.

> @@ -2703,11 +2703,11 @@ char *parse_via(
 	if(end > buffer) {
-		LM_ERR("parsing via on: <%.*s>\n", (int)(end - buffer), ZSW(buffer));
+		LM_ERR("parsing via on: <%.*s>\n", (int)(end - buffer), ZSW(ksr_buf_oneline(buffer, (int)strlen(buffer))));

Instead of  `(int)strlen(buffer)` should be `(int)(end - buffer)` -- that's the size to be printed, being the first parameter that is provided for `%.*s`.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20211029/d36af210/attachment.htm>

More information about the sr-dev mailing list