[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] cluster/cman/lib libcman.c

CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	pcaulfield sourceware org	2007-01-05 10:30:54

Modified files:
	cman/lib       : libcman.c 

Log message:
	Send correct length of quorum device name sent to cman.
	Thanks to simone gotti email it for the patch


--- cluster/cman/lib/libcman.c	2006/12/19 10:55:00	1.32
+++ cluster/cman/lib/libcman.c	2007/01/05 10:30:53	1.33
@@ -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)

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]