src/MultiPlayer/multiplaymgr.cxx: avoid compiler warning for strncpy() call.
This commit is contained in:
parent
3351a785be
commit
02bda6d8d2
1 changed files with 1 additions and 1 deletions
|
@ -1378,7 +1378,7 @@ FGMultiplayMgr::SendMyPosition(const FGExternalMotionData& motionInfo)
|
|||
else
|
||||
PosMsg->pad = 0;
|
||||
|
||||
strncpy(PosMsg->Model, fgGetString("/sim/model/path").c_str(), MAX_MODEL_NAME_LEN);
|
||||
strncpy(PosMsg->Model, fgGetString("/sim/model/path").c_str(), MAX_MODEL_NAME_LEN-1);
|
||||
PosMsg->Model[MAX_MODEL_NAME_LEN - 1] = '\0';
|
||||
if (fgGetBool("/sim/freeze/replay-state", true)&&
|
||||
fgGetBool("/sim/multiplay/freeze-on-replay",true))
|
||||
|
|
Loading…
Reference in a new issue