AP_ADSB: Set in the sprintf method.

This commit is contained in:
murata 2016-11-01 22:44:39 +09:00 committed by Tom Pittenger
parent 0028bd7b3c
commit e15c234a4f
1 changed files with 0 additions and 2 deletions

View File

@ -641,8 +641,6 @@ void AP_ADSB::set_callsign(const char* str, const bool append_icao)
if (append_icao) {
sprintf(&out_state.cfg.callsign[4], "%04X", out_state.cfg.ICAO_id % 0x10000);
}
out_state.cfg.callsign[sizeof(out_state.cfg.callsign)-1] = 0; // always null terminate just to be sure
}