@miconda commented on this pull request.
@@ -2703,11 +2703,11 @@ char *parse_via(
error:
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:
https://github.com/kamailio/kamailio/pull/2904#pullrequestreview-793011360