mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-26 01:33: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();
|
uint16_t rem = remaining();
|
||||||
if (rem > str_len) {
|
if (rem > str_len) {
|
||||||
strncpy((char*)&_buf[_idx], str, str_len);
|
strncpy_noterm((char*)&_buf[_idx], str, str_len);
|
||||||
_idx += str_len;
|
_idx += str_len;
|
||||||
_bytes += str_len;
|
_bytes += str_len;
|
||||||
} else {
|
} else {
|
||||||
strncpy((char*)&_buf[_idx], str, rem);
|
strncpy_noterm((char*)&_buf[_idx], str, rem);
|
||||||
_chunk++;
|
_chunk++;
|
||||||
_idx += str_len;
|
_idx += str_len;
|
||||||
_bytes += rem;
|
_bytes += rem;
|
||||||
|
Loading…
Reference in New Issue
Block a user