From a212909a6cf86510f9ef9b0b1d2c749daa232599 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sun, 8 Jun 2025 13:42:18 -1000 Subject: [PATCH] ETHER: Avoid possible string truncation gcc warning --- sim_ether.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim_ether.c b/sim_ether.c index ef2c359b..49cc8898 100644 --- a/sim_ether.c +++ b/sim_ether.c @@ -2810,7 +2810,7 @@ if (0 == strncmp("udp:", savname, 4)) { } *fd_handle = sim_connect_sock_ex (localport, hostport, NULL, NULL, SIM_SOCK_OPT_DATAGRAM); if (INVALID_SOCKET == *fd_handle) { - snprintf (errbuf, errbuf_size, "Can not open socket %s to %s", localport, hostport); + snprintf (errbuf, errbuf_size, "Can not open socket %1.64s to %1.64s", localport, hostport); return SCPE_OPENERR; } *eth_api = ETH_API_UDP;