From 7f3c7e9d46d4ecce7f5aca30c622fc76c0a96802 Mon Sep 17 00:00:00 2001 From: kpl Date: Sat, 14 Jun 2014 21:09:28 -0700 Subject: [PATCH] cmRtNet.c : Fix serialization bug in _cmRtNetSend(). --- cmRtNet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmRtNet.c b/cmRtNet.c index f2b959b..21dee99 100644 --- a/cmRtNet.c +++ b/cmRtNet.c @@ -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));