mirror of
https://github.com/simh/simh.git
synced 2026-03-03 01:58:53 +00:00
ETHER: Avoid possible string truncation gcc warning
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user