From ae695b04d08bd30a6d0a620bff9457a2922ca02a Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Wed, 7 Jul 2004 21:12:01 +0000 Subject: [PATCH] Change memcpy to memmove to quiet down valgrind. (Logical change 1.23) git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@64 fd59a12c-fef9-0310-b244-a6a79926bd2f --- exec/clm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/clm.c b/exec/clm.c index 4fc7d29f..fb08ac33 100644 --- a/exec/clm.c +++ b/exec/clm.c @@ -288,7 +288,7 @@ static void libraryNotificationLeave (SaClmNodeIdT *nodes, int nodes_entries) for (j = 0; j < clusterNodeEntries;) { if (nodes[i] == clusterNodes[j].nodeId) { clusterNodeEntries -= 1; - memcpy (&clusterNodes[j], &clusterNodes[j + 1], + memmove (&clusterNodes[j], &clusterNodes[j + 1], (clusterNodeEntries - j) * sizeof (SaClmClusterNodeT)); } else { /*