Menu

#297 Store Operation Train Dir error

2.0.3.0
closed
None
2020-08-21
2019-11-18
No

tau_tti.c::ttiStoreOpTrnDir(..)
The ide to copy both opVehList and opTrnTopoCnt in the same time is not working du to that the local opVehList has a fixed size of 63 and the received message has a dynamic size.
Copy the opVehList as this:
size = appHandle->pTTDB->opTrnDir.opVehCnt * sizeof(TRDP_OP_VEHICLE_T);
memcpy(appHandle->pTTDB->opTrnDir.opVehList, pData, size);

then the opTrnTopoCnt as this:
appHandle->pTTDB->opTrnDir.opTrnTopoCnt = (UINT32 ) (pData + size);

Discussion

  • Bernd Löhr

    Bernd Löhr - 2020-07-08
    • status: open --> pending
    • assigned_to: Bernd Löhr
    • Milestone: 2.1.0.0 --> 2.0.3.0
     
  • Bernd Löhr

    Bernd Löhr - 2020-08-21
    • Status: pending --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB