From: Lionel Landwerlin Date: Tue, 4 Sep 2018 12:36:11 +0000 (+0100) Subject: intel/error2aub: strenghten batchbuffer identifier marker X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c0ea043888c1440c6f6f30d616ef5d2bf45bef46;p=mesa.git intel/error2aub: strenghten batchbuffer identifier marker Found out that some base64 data matched the '---' identifier. We can avoid this by adding the surrounding spaces. Signed-off-by: Lionel Landwerlin Reviewed-by: Rafael Antognolli --- diff --git a/src/intel/tools/error2aub.c b/src/intel/tools/error2aub.c index 5fa089065f2..8da484b3702 100644 --- a/src/intel/tools/error2aub.c +++ b/src/intel/tools/error2aub.c @@ -339,9 +339,9 @@ main(int argc, char *argv[]) continue; } - char *dashes = strstr(line, "---"); + char *dashes = strstr(line, " --- "); if (dashes) { - dashes += 4; + dashes += 5; engine_from_name(line, &active_engine_class, &active_engine_instance);