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`
Hamlib-4.6.3
George Baltz N3GB 2025-08-06 04:59:50 -04:00 zatwierdzone przez Nate Bargmann
rodzic 566d56bb29
commit 201f69bf3c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: FB2C5130D55A8819
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -2372,7 +2372,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)
{