mirror of
https://github.com/simh/simh.git
synced 2026-01-13 07:19:43 +00:00
TMXR: Silence GCC 8.3 warning about buffer overrun
This commit is contained in:
parent
108291b3d4
commit
d40268d1ac
@ -1232,7 +1232,7 @@ for (i = 0; i < mp->lines; i++) { /* check each line in se
|
||||
++mp->sessions; /* count the new session */
|
||||
|
||||
if (lp->destination) { /* Virtual Null Modem Cable? */
|
||||
char host[CBUFSIZE];
|
||||
char host[sizeof(msg) - 64];
|
||||
|
||||
if (sim_parse_addr (lp->destination, host, sizeof(host), NULL, NULL, 0, NULL, address)) {
|
||||
tmxr_msg (newsock, "Rejecting connection from unexpected source\r\n");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user