]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix virbitmaptest on 32-bit
authorJán Tomko <jtomko@redhat.com>
Fri, 6 Jun 2014 14:50:33 +0000 (16:50 +0200)
committerJán Tomko <jtomko@redhat.com>
Fri, 6 Jun 2014 14:52:27 +0000 (16:52 +0200)
My commit 7d8afc4 was passing the incorrect size to
virBitmapDataToString in the newly added test.

tests/virbitmaptest.c

index 139b8e258cb5e6f0d977fe264afcb87989172786..048946fcff92a2343b2ec1edc02ef03cbed70102 100644 (file)
@@ -313,7 +313,7 @@ test5(const void *v ATTRIBUTE_UNUSED)
     if (STRNEQ(str, "0,9,34"))
         goto error;
     VIR_FREE(str);
-    if (!(str = virBitmapDataToString(data2, sizeof(data2))))
+    if (!(str = virBitmapDataToString(data2, len2)))
         goto error;
     if (STRNEQ(str, "0,2,9,15,34"))
         goto error;