TMXR: Silence GCC 8.3 warning about buffer overrun
This commit is contained in:
parent
108291b3d4
commit
d40268d1ac
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||||
|
|
Loading…
Add table
Reference in a new issue