@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`.