ecore_wl2_display: Correct pointer arithmetic 52/291052/2 accepted/tizen/unified/20230411.161301
authorJunseok Kim <juns.kim@samsung.com>
Fri, 7 Apr 2023 04:21:40 +0000 (13:21 +0900)
committerJunseok Kim <juns.kim@samsung.com>
Fri, 7 Apr 2023 05:31:02 +0000 (14:31 +0900)
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

index f12ec76..b1e9faf 100644 (file)
@@ -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++;
           }
      }