[PATCH] Fix virbitmaptest on 32-bit

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

 



My commit 7d8afc4 was passing the incorrect size to
virBitmapDataToString in the newly added test.
---
Pushed as a trivial paper-bag build breaker fix.

 tests/virbitmaptest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/virbitmaptest.c b/tests/virbitmaptest.c
index 139b8e2..048946f 100644
--- a/tests/virbitmaptest.c
+++ b/tests/virbitmaptest.c
@@ -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;
-- 
1.8.3.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]