From 95c2e7fb17f6baf37f1d2c5229ebb35938b64aa2 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 1 Oct 2023 17:04:03 +0000 Subject: Avoid stupid buffer overflows tyvm Signed-off-by: Laurent Bercot --- src/conn-tools/s6-tcpserverd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/conn-tools') diff --git a/src/conn-tools/s6-tcpserverd.c b/src/conn-tools/s6-tcpserverd.c index 7c567e9..9f540f9 100644 --- a/src/conn-tools/s6-tcpserverd.c +++ b/src/conn-tools/s6-tcpserverd.c @@ -367,7 +367,7 @@ int main (int argc, char const *const *argv) { size_t iplen, portlen ; - char fmtip[IP4_FMT] ; + char fmtip[IP46_FMT] ; char fmtport[UINT16_FMT] ; ip46 loc ; if (socket_local46(0, &loc, &port) == -1) -- cgit v1.2.3