[glib] gdbus-test-codegen: Allocate full integer space for uint16 properties



commit d54c65448cf7426d132f11c645a1cd9eec034c03
Author: Colin Walters <walters verbum org>
Date:   Mon Jun 20 13:41:52 2011 -0400

    gdbus-test-codegen: Allocate full integer space for uint16 properties
    
    Because there is no G_TYPE_[U]INT16, we need to use integer types,
    otherwise we'll end up overwriting memory (in this case on the stack).

 gio/tests/gdbus-test-codegen.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/tests/gdbus-test-codegen.c b/gio/tests/gdbus-test-codegen.c
index fe192fa..24c1cae 100644
--- a/gio/tests/gdbus-test-codegen.c
+++ b/gio/tests/gdbus-test-codegen.c
@@ -703,8 +703,8 @@ check_bar_proxy (FooBar    *proxy,
   ClientData *data;
   guchar val_y;
   gboolean val_b;
-  gint16 val_n;
-  guint16 val_q;
+  gint val_n;
+  guint val_q;
   gint val_i;
   guint val_u;
   gint64 val_x;



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