`memcmp()` compares a given number of bytes, but `EGLAttrib` is larger than a byte.
Fixes:
8e991ce5397598ceb422 "egl: handle the full attrib list in display::options"
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
return EGL_TRUE;
/* otherwise, compare the lists */
- return memcmp(a, b, na) == 0 ? EGL_TRUE : EGL_FALSE;
+ return memcmp(a, b, na * sizeof(a[0])) == 0 ? EGL_TRUE : EGL_FALSE;
}
/**