Browse Source

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

master
kpl 10 years ago
parent
commit
7f3c7e9d46
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      cmRtNet.c

+ 1
- 1
cmRtNet.c View File

780
   r->hdr.rtSubIdx     = ep->rtSubIdx;
780
   r->hdr.rtSubIdx     = ep->rtSubIdx;
781
   r->hdr.selId        = kMsgSelRtId;
781
   r->hdr.selId        = kMsgSelRtId;
782
   r->endptId          = ep->id;
782
   r->endptId          = ep->id;
783
-  memcpy(data+sizeof(cmRtSysMsgHdr_t),msg,msgByteCnt);
783
+  memcpy(data+sizeof(cmRtNetMsg_t),msg,msgByteCnt);
784
   
784
   
785
   if( cmUdpSendTo(p->udpH, data, dN, &ep->np->sockaddr ) != kOkUdpRC )
785
   if( cmUdpSendTo(p->udpH, data, dN, &ep->np->sockaddr ) != kOkUdpRC )
786
     return cmErrMsg(&p->err,kUdpPortFailNetRC,"Send to node:%s endpt:%s failed.\n",cmStringNullGuard(ep->np->label),cmStringNullGuard(ep->label));
786
     return cmErrMsg(&p->err,kUdpPortFailNetRC,"Send to node:%s endpt:%s failed.\n",cmStringNullGuard(ep->np->label),cmStringNullGuard(ep->label));

Loading…
Cancel
Save