Update AX25.cpp
Fixed stringop-truncation error
This commit is contained in:
parent
8a208fd27e
commit
2c83eb769d
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