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:
parent
7945ffb996
commit
e4267760f9
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue