From d40268d1acf63a71400b1a8352e964495cbe86d2 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Thu, 5 Sep 2019 17:41:01 -0700 Subject: [PATCH] TMXR: Silence GCC 8.3 warning about buffer overrun --- sim_tmxr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");