Update AX25.cpp

Fixed stringop-truncation error
This commit is contained in:
Olivér Remény 2024-02-08 12:55:29 +01:00 committed by GitHub
parent 8a208fd27e
commit 2c83eb769d
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() {