[Mesa-dev] [PATCH 2/5] egl/android: use strcmp with drmVersion::name

Tomasz Figa tfiga at chromium.org
Mon Aug 13 15:21:26 UTC 2018

On Mon, Aug 13, 2018 at 11:48 PM Emil Velikov <emil.l.velikov at gmail.com> wrote:
> From: Emil Velikov <emil.velikov at collabora.com>
> The name string is guaranteed to be NULL terminated. Drop the explicit
> length check that comes with strncmp().

Is there anything wrong with that length check? I feel like it's a
good practice to keep it anyway.

Best regards,

More information about the mesa-dev mailing list