mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-25 17:23:56 -04:00
AP_RCTelemetry: fixed build for gcc 9.x
This commit is contained in:
parent
c1dded0483
commit
19c42ca0ed
@ -632,11 +632,11 @@ public:
|
||||
|
||||
uint16_t rem = remaining();
|
||||
if (rem > str_len) {
|
||||
strncpy((char*)&_buf[_idx], str, str_len);
|
||||
strncpy_noterm((char*)&_buf[_idx], str, str_len);
|
||||
_idx += str_len;
|
||||
_bytes += str_len;
|
||||
} else {
|
||||
strncpy((char*)&_buf[_idx], str, rem);
|
||||
strncpy_noterm((char*)&_buf[_idx], str, rem);
|
||||
_chunk++;
|
||||
_idx += str_len;
|
||||
_bytes += rem;
|
||||
|
Loading…
Reference in New Issue
Block a user