[PATCH 12/12] wayland-server.c: Fix dereferencing types of new objects
Philip Withnall
philip at tecnocode.co.uk
Fri Feb 15 04:57:29 PST 2013
The type should be stored in the same location as the argument. This
fixes the test suite on FreeBSD.
Signed-off-by: Philip Withnall <philip at tecnocode.co.uk>
---
src/wayland-server.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/wayland-server.c b/src/wayland-server.c
index 8eef048..a6966e1 100644
--- a/src/wayland-server.c
+++ b/src/wayland-server.c
@@ -214,7 +214,7 @@ deref_new_objects(struct wl_closure *closure)
switch (signature[i]) {
case 'n':
closure->args[i + 2] = *(uint32_t **) closure->args[i + 2];
- closure->types[i] = &ffi_type_uint32;
+ closure->types[i + 2] = &ffi_type_uint32;
break;
}
}
--
1.7.11.7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 230 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20130215/aabdeef6/attachment.pgp>
More information about the wayland-devel
mailing list