diff options
Diffstat (limited to 'contrib/coccinelle/strbuf.cocci')
-rw-r--r-- | contrib/coccinelle/strbuf.cocci | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/coccinelle/strbuf.cocci b/contrib/coccinelle/strbuf.cocci index ce2e92c6e9..e34eada1ad 100644 --- a/contrib/coccinelle/strbuf.cocci +++ b/contrib/coccinelle/strbuf.cocci @@ -14,8 +14,9 @@ constant fmt !~ "%"; @@ expression E1, E2; +format F =~ "s"; @@ -- strbuf_addf(E1, "%s", E2); +- strbuf_addf(E1, "%@F@", E2); + strbuf_addstr(E1, E2); @@ |