From 782d91c8ad6cea67ae009bfc572294fd21afc26c Mon Sep 17 00:00:00 2001 From: Junseok Kim Date: Fri, 7 Apr 2023 13:21:40 +0900 Subject: [PATCH] ecore_wl2_display: Correct pointer arithmetic There're was a misuse of pointer arithmetic that access to integer array and correct it. and correct indentation. Change-Id: Ica5b70c3225518365ded39cc2d1e9cf7dd8e1ffa --- src/lib/ecore_wl2/ecore_wl2_display.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/ecore_wl2/ecore_wl2_display.c b/src/lib/ecore_wl2/ecore_wl2_display.c index f12ec76..b1e9faf 100644 --- a/src/lib/ecore_wl2/ecore_wl2_display.c +++ b/src/lib/ecore_wl2/ecore_wl2_display.c @@ -801,11 +801,11 @@ _wtz_screen_cb_capabilities(void *data, struct wtz_screen *screen EINA_UNUSED, s { switch ((uint32_t) *p) { - case WTZ_SCREEN_CAPABILITY_SPLITSCREEN : - capability |= ECORE_WL2_SCREEN_CAPABILITY_SPLITSCREEN; - break; + case WTZ_SCREEN_CAPABILITY_SPLITSCREEN : + capability |= ECORE_WL2_SCREEN_CAPABILITY_SPLITSCREEN; + break; } - p += sizeof(uint32_t); + p++; } } -- 2.7.4