[pygobject/invoke-rewrite] [gi] set length for uint8 in arrays in new invoke marshaller



commit f45033858bed70d7defec3f71f26aa5b3999d680
Author: John (J5) Palmieri <johnp redhat com>
Date:   Wed Jan 19 06:35:45 2011 -0500

    [gi] set length for uint8 in arrays in new invoke marshaller

 gi/pygi-argument.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gi/pygi-argument.c b/gi/pygi-argument.c
index 379f58d..110dcac 100644
--- a/gi/pygi-argument.c
+++ b/gi/pygi-argument.c
@@ -926,6 +926,7 @@ _pygi_argument_from_object (PyObject   *object,
                 PYGLIB_PyBytes_Check(object)) {
 
                 memcpy(array->data, PYGLIB_PyBytes_AsString(object), length);
+                array->len = length;
                 goto array_success;
             }
 



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