tinyds: Fix passing wrong arg to wl_container_of 83/278183/1
authorSeunghun Lee <shiin.lee@samsung.com>
Wed, 4 May 2022 06:31:58 +0000 (15:31 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 18 Jul 2022 05:58:35 +0000 (14:58 +0900)
This led segfault illegally accessing wrong pointer.

Change-Id: I28e64be8c0d0abd5ee8e164353a5c038a2c7ce52

src/examples/tinyds.c

index fcaabaf..e054e71 100644 (file)
@@ -380,7 +380,7 @@ pointer_handle_frame(struct wl_listener *listener, void *data)
 {
     struct tinyds_pointer *pointer;
 
-    pointer = wl_container_of(listener, pointer, motion);
+    pointer = wl_container_of(listener, pointer, frame);
 
     ds_inf("Pointer(%p) frame", pointer);
 }