diff --git a/src/MultiPlayer/multiplaymgr.cxx b/src/MultiPlayer/multiplaymgr.cxx index bdacbd4..7aea1ff 100644 --- a/src/MultiPlayer/multiplaymgr.cxx +++ b/src/MultiPlayer/multiplaymgr.cxx @@ -1439,8 +1439,8 @@ FGMultiplayMgr::SendMyPosition(const FGExternalMotionData& motionInfo) //zhongjin std::string mAirportid = fgGetString("/instrumentation/comm/airport-id"); - strncpy(MsgHdr->Callsign, mAirportid.c_str(), 4); - MsgHdr->Callsign[4 - 1] = '\0'; + strncpy(MsgHdr->airport, mAirportid.c_str(), 4); + MsgHdr->airport[4 - 1] = '\0'; float heading = ifce.get_Psi();