From aa66c3c71da77284c48cc4622591786c82b359ef Mon Sep 17 00:00:00 2001 From: zhongjin Date: Mon, 7 Nov 2022 15:53:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'src/MultiPlayer/multiplay?= =?UTF-8?q?mgr.cxx'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MultiPlayer/multiplaymgr.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MultiPlayer/multiplaymgr.cxx b/src/MultiPlayer/multiplaymgr.cxx index 7aea1ff..065698c 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->airport, mAirportid.c_str(), 4); - MsgHdr->airport[4 - 1] = '\0'; + strncpy(PosMsg->airport, mAirportid.c_str(), 4); + PosMsg->airport[4 - 1] = '\0'; float heading = ifce.get_Psi();