TMXR: Silence GCC 8.3 warning about buffer overrun

This commit is contained in:
Mark Pizzolato 2019-09-05 17:41:01 -07:00
parent 108291b3d4
commit d40268d1ac

View file

@ -1232,7 +1232,7 @@ for (i = 0; i < mp->lines; i++) { /* check each line in se
++mp->sessions; /* count the new session */ ++mp->sessions; /* count the new session */
if (lp->destination) { /* Virtual Null Modem Cable? */ 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)) { if (sim_parse_addr (lp->destination, host, sizeof(host), NULL, NULL, 0, NULL, address)) {
tmxr_msg (newsock, "Rejecting connection from unexpected source\r\n"); tmxr_msg (newsock, "Rejecting connection from unexpected source\r\n");