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

* Update LoRaWAN.cpp

* Update Pager.cpp

* Update AX25.cpp

Fixed stringop-truncation error
This commit is contained in:
Olivér Remény 2024-02-11 09:41:41 +01:00 committed by GitHub
parent 7945ffb996
commit e4267760f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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() {