Fix stringop-truncation warning in AX25 callsign getter (#958)

* Update LoRaWAN.cpp

* Update Pager.cpp

* Update AX25.cpp

Fixed stringop-truncation error
pull/970/head
Olivér Remény 2024-02-11 09:41:41 +01:00 zatwierdzone przez GitHub
rodzic 7945ffb996
commit e4267760f9
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -440,7 +440,7 @@ int16_t AX25Client::sendFrame(AX25Frame* frame) {
}
void AX25Client::getCallsign(char* buff) {
strncpy(buff, sourceCallsign, RADIOLIB_AX25_MAX_CALLSIGN_LEN);
strncpy(buff, sourceCallsign, RADIOLIB_AX25_MAX_CALLSIGN_LEN + 1);
}
uint8_t AX25Client::getSSID() {