From cb60571b31597441286d0dbde0ce179069bd45c5 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Sun, 4 Oct 2020 11:31:51 +0200 Subject: [PATCH] coccinelle: skip the xsprintf transformation on man pages since we don't expose xsprintf to users. --- coccinelle/xsprintf.cocci | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coccinelle/xsprintf.cocci b/coccinelle/xsprintf.cocci index 401216ad72..660a35e3f4 100644 --- a/coccinelle/xsprintf.cocci +++ b/coccinelle/xsprintf.cocci @@ -1,6 +1,7 @@ @@ +position p : script:python() { not p[0].file.startswith("man/") }; expression e, fmt; expression list vaargs; @@ -- snprintf(e, sizeof(e), fmt, vaargs); +- snprintf@p(e, sizeof(e), fmt, vaargs); + xsprintf(e, fmt, vaargs);