]> git.proxmox.com Git - mirror_corosync.git/commitdiff
Correct testcpg's groupname.length
authorAngus Salkeld <asalkeld@redhat.com>
Thu, 18 Feb 2010 20:10:36 +0000 (20:10 +0000)
committerAngus Salkeld <asalkeld@redhat.com>
Thu, 18 Feb 2010 20:10:36 +0000 (20:10 +0000)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2661 fd59a12c-fef9-0310-b244-a6a79926bd2f

test/testcpg.c

index c9fe79d3f3f6c08ca5bec222d3c13dd0468f3a2b..2abe83d72e2d55ad67a71396b2480e2d191a43d7 100644 (file)
@@ -163,7 +163,7 @@ int main (int argc, char *argv[]) {
 
        if (argc > optind) {
                strcpy(group_name.value, argv[optind]);
-               group_name.length = strlen(argv[optind])+1;
+               group_name.length = strlen(argv[optind]);
        }
        else {
                strcpy(group_name.value, "GROUP");