From mboxrd@z Thu Jan 1 00:00:00 1970 From: pcaulfield@sourceware.org Date: 5 Jan 2007 10:31:34 -0000 Subject: [Cluster-devel] cluster/cman/lib libcman.c Message-ID: <20070105103134.27216.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: cluster Branch: RHEL5 Changes by: pcaulfield at sourceware.org 2007-01-05 10:31:34 Modified files: cman/lib : libcman.c Log message: Send correct length of quorum device name sent to cman. Thanks to simone.gotti at email.it for the patch Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/lib/libcman.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.30.2.2&r2=1.30.2.3 --- cluster/cman/lib/libcman.c 2006/12/19 10:55:57 1.30.2.2 +++ cluster/cman/lib/libcman.c 2007/01/05 10:31:33 1.30.2.3 @@ -1002,7 +1002,7 @@ memcpy(buf, &votes, sizeof(int)); strcpy(buf+sizeof(int), name); - return info_call(h, CMAN_CMD_REG_QUORUMDEV, buf, strlen(name)+sizeof(int), NULL, 0); + return info_call(h, CMAN_CMD_REG_QUORUMDEV, buf, strlen(name)+1+sizeof(int), NULL, 0); } int cman_unregister_quorum_device(cman_handle_t handle)