mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
uORB: fix copy-paste mistake in orb_print_message_internal
Could have led to invalid memory access.
This commit is contained in:
parent
a2260e53da
commit
bcd057ac3e
@ -439,7 +439,7 @@ void orb_print_message_internal(const orb_metadata *meta, const void *data, bool
|
||||
}
|
||||
|
||||
memcpy(topic_name, meta->o_fields + format_idx, topic_name_len);
|
||||
field_name[topic_name_len] = '\0';
|
||||
topic_name[topic_name_len] = '\0';
|
||||
|
||||
// find the metadata
|
||||
const orb_metadata *const *topics = orb_get_topics();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user