From: Junseok Kim Date: Fri, 7 Apr 2023 04:21:40 +0000 (+0900) Subject: ecore_wl2_display: Correct pointer arithmetic X-Git-Tag: accepted/tizen/unified/20230411.161301^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=782d91c8ad6cea67ae009bfc572294fd21afc26c;p=platform%2Fupstream%2Fefl.git 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 --- 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++; } }