From d84e89083186f0e3436b7cf1bd7c86017f727c9a Mon Sep 17 00:00:00 2001 From: Patrick Caulfield Date: Thu, 22 Jun 2006 16:07:30 +0000 Subject: [PATCH] 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 --- exec/cpg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/cpg.c b/exec/cpg.c index 03381d6c..f2f355ab 100644 --- a/exec/cpg.c +++ b/exec/cpg.c @@ -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 */