summaryrefslogtreecommitdiffstats
path: root/coccinelle/xsprintf.cocci
blob: 660a35e3f4d9b340a5e90db9a1138ff44b8cf635 (plain)
1
2
3
4
5
6
7
@@
position p : script:python() { not p[0].file.startswith("man/") };
expression e, fmt;
expression list vaargs;
@@
- snprintf@p(e, sizeof(e), fmt, vaargs);
+ xsprintf(e, fmt, vaargs);