-
memmem() does not attribute what the character after the searched string is. Thus it will flag even when haystack is "foobar" while we're looking for "foo". Pull a small helper (from piglit) that correctly handles this and use it. v2: Drop unintentional whitespace changes (Eric) Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
c7d6c2aa