Fix one byte buffer overrun

All the pictures in manuals show message as 4 bytes, but they don't
include the major command (0x26).

Found by `gcc -fanalyzer`
pull/1834/head
George Baltz N3GB 2025-08-06 04:59:50 -04:00
rodzic 1e5adb9fde
commit 70d50d0efb
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -2373,7 +2373,7 @@ static int icom_set_mode_x26(RIG *rig, vfo_t vfo, rmode_t mode,
int ack_len = sizeof(ackbuf);
int buf_len = 3;
int mode_len;
unsigned char mode_buf[4];
unsigned char mode_buf[5];
if (priv->x26cmdfails > 0 && !priv_caps->x25x26_always)
{