CLEANUP: Apply ist.cocci
This is to make use of `chunk_istcat()`.
diff --git a/src/tcpcheck.c b/src/tcpcheck.c
index bf497fe..294e49b 100644
--- a/src/tcpcheck.c
+++ b/src/tcpcheck.c
@@ -429,7 +429,7 @@
* 4. Otherwise produce the generic tcp-check info message
*/
if (istlen(info)) {
- chunk_strncat(msg, istptr(info), istlen(info));
+ chunk_istcat(msg, info);
goto comment;
}
else if (!LIST_ISEMPTY(&rule->expect.onerror_fmt)) {
@@ -517,7 +517,7 @@
* 4. Otherwise produce the generic tcp-check info message
*/
if (istlen(info))
- chunk_strncat(msg, istptr(info), istlen(info));
+ chunk_istcat(msg, info);
if (!LIST_ISEMPTY(&rule->expect.onsuccess_fmt))
msg->data += sess_build_logline(check->sess, NULL, b_tail(msg), b_room(msg),
&rule->expect.onsuccess_fmt);