From c0ea043888c1440c6f6f30d616ef5d2bf45bef46 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Tue, 4 Sep 2018 13:36:11 +0100 Subject: [PATCH] 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 --- src/intel/tools/error2aub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.30.2