Modify the buffer size of q900. c to prevent overflow

pull/1781/head
声纳 2025-06-26 10:11:27 +08:00
rodzic acd4a98cd5
commit 92a0775855
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -396,7 +396,7 @@ static int q900_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
cmd[6] = crc >> 8;
cmd[7] = crc & 0xFF;
unsigned char reply[33];
unsigned char reply[40];
int ret = q900_send(rig, cmd, sizeof(cmd), reply, sizeof(reply));
if (ret != RIG_OK) {
rig_debug(RIG_DEBUG_ERR, "%s: Communication failure, error code=%d\n", __func__, ret);