Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion libraries/AP_ADSB/AP_ADSB_Sagetech.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ void AP_ADSB_Sagetech::handle_adsb_in_msg(const Packet_XP &msg)

if (msg.payload[16] != 0) {
// if string is non-null, consider it valid
memcpy(&vehicle.info, &msg.payload[16], 8);
// "The callsign, 8+null" (from the mavlink spec) means we subtract one here
memcpy(&vehicle.info.callsign, &msg.payload[16], MIN(ARRAY_SIZE(vehicle.info.callsign)-1, 8U));
vehicle.info.flags |= ADSB_FLAGS_VALID_CALLSIGN;
}

Expand Down
Loading