Fix message alignment in CPG.

we now unpack the message in the same way as we pack it.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1084 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
Patrick Caulfield 2006-06-22 16:07:30 +00:00
parent 5d5cefd4a5
commit d84e890831

View File

@ -767,7 +767,7 @@ static void message_handler_req_exec_cpg_mcast (
res_lib_cpg_mcast->nodeid = nodeid;
memcpy(&res_lib_cpg_mcast->group_name, &gi->group_name,
sizeof(struct cpg_name));
memcpy(&res_lib_cpg_mcast->message, req_exec_cpg_mcast->message,
memcpy(&res_lib_cpg_mcast->message, (char*)message+sizeof(*req_exec_cpg_mcast),
msglen);
/* Send to all interested members */