summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-10-01 17:04:03 +0000
committerLaurent Bercot <ska@appnovation.com>2023-10-01 17:04:03 +0000
commit95c2e7fb17f6baf37f1d2c5229ebb35938b64aa2 (patch)
tree58985c6865c0af517ae9ca87657fbf1a9c0677e4 /src
parent4ca52e6dad61ba853846780213b690aac5db739b (diff)
downloads6-networking-95c2e7fb17f6baf37f1d2c5229ebb35938b64aa2.tar.xz
Avoid stupid buffer overflows tyvm
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src')
-rw-r--r--src/conn-tools/s6-tcpserverd.c2
1 files changed, 1 insertions, 1 deletions
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)