summaryrefslogtreecommitdiffstats
path: root/src/egl/drivers
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2018-08-08 14:56:00 +0100
committerEmil Velikov <[email protected]>2018-08-24 11:52:37 +0100
commit9b5bf7afced7ef7dd1b379023df8cd8ed333b160 (patch)
treedc93c9e49f8da793b8b0bf7aa5f6f6876371a592 /src/egl/drivers
parent3827966643b63061027bbe9320b8e371c49e2033 (diff)
egl/android: use strcmp with drmVersion::name
The name string is guaranteed to be NULL terminated. Drop the explicit length check that comes with strncmp(). Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Tomasz Figa <[email protected]>
Diffstat (limited to 'src/egl/drivers')
-rw-r--r--src/egl/drivers/dri2/platform_android.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/drivers/dri2/platform_android.c b/src/egl/drivers/dri2/platform_android.c
index 9877c49fdd9..ee6c2791b18 100644
--- a/src/egl/drivers/dri2/platform_android.c
+++ b/src/egl/drivers/dri2/platform_android.c
@@ -1437,7 +1437,7 @@ droid_probe_device(_EGLDisplay *disp, int fd, const char *vendor)
goto cleanup;
}
- if (vendor && strncmp(vendor, ver->name, PROPERTY_VALUE_MAX) != 0) {
+ if (vendor && strcmp(vendor, ver->name) != 0) {
ret = probe_filtered_out;
goto cleanup;
}