mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 15:23:57 -04:00
GCS_MAVLink: fixed assumption on return of snprintf
This commit is contained in:
parent
412bf24b9a
commit
98c2606c0a
@ -2631,6 +2631,7 @@ void GCS_MAVLINK::handle_statustext(const mavlink_message_t &msg)
|
||||
"SRC=%u/%u:",
|
||||
msg.sysid,
|
||||
msg.compid);
|
||||
offset = MIN(offset, max_prefix_len);
|
||||
}
|
||||
|
||||
memcpy(&text[offset], packet.text, MAVLINK_MSG_STATUSTEXT_FIELD_TEXT_LEN);
|
||||
|
Loading…
Reference in New Issue
Block a user