cmRtNet.c : Fix serialization bug in _cmRtNetSend().

This commit is contained in:
kpl 2014-06-14 21:09:28 -07:00
parent 3027a27302
commit 7f3c7e9d46

View File

@ -780,7 +780,7 @@ cmRtNetRC_t _cmRtNetSend( cmRtNet_t* p, const cmRtNetEnd_t* ep, const void* msg,
r->hdr.rtSubIdx = ep->rtSubIdx;
r->hdr.selId = kMsgSelRtId;
r->endptId = ep->id;
memcpy(data+sizeof(cmRtSysMsgHdr_t),msg,msgByteCnt);
memcpy(data+sizeof(cmRtNetMsg_t),msg,msgByteCnt);
if( cmUdpSendTo(p->udpH, data, dN, &ep->np->sockaddr ) != kOkUdpRC )
return cmErrMsg(&p->err,kUdpPortFailNetRC,"Send to node:%s endpt:%s failed.\n",cmStringNullGuard(ep->np->label),cmStringNullGuard(ep->label));