gdbus-test-codegen: Allocate full integer space for uint16 properties
authorColin Walters <walters@verbum.org>
Mon, 20 Jun 2011 17:41:52 +0000 (13:41 -0400)
committerColin Walters <walters@verbum.org>
Mon, 20 Jun 2011 18:03:05 +0000 (14:03 -0400)
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

index fe192fa..24c1cae 100644 (file)
@@ -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;