瀏覽代碼

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

master
kpl 10 年之前
父節點
當前提交
7f3c7e9d46
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      cmRtNet.c

+ 1
- 1
cmRtNet.c 查看文件

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

Loading…
取消
儲存