diff --git a/sim_tmxr.c b/sim_tmxr.c index e81515cc..d81e366f 100644 --- a/sim_tmxr.c +++ b/sim_tmxr.c @@ -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");