PATCH] Fix new_id(n) arg parse from va list

Maks Naumov maksqwe1 at ukr.net
Mon Aug 18 10:31:24 PDT 2014


Signed-off-by: Maks Naumov <maksqwe1 at ukr.net>
---
 src/connection.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/connection.c b/src/connection.c
index f292853..13e3a3e 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -492,7 +492,7 @@ wl_argument_from_va_list(const char *signature, union wl_argument *args,
 			args[i].o = va_arg(ap, struct wl_object *);
 			break;
 		case 'n':
-			args[i].o = va_arg(ap, struct wl_object *);
+			args[i].n = va_arg(ap, uint32_t);
 			break;
 		case 'a':
 			args[i].a = va_arg(ap, struct wl_array *);
-- 
1.9.1





More information about the wayland-devel mailing list