summaryrefslogtreecommitdiffstats
path: root/coccinelle/xsprintf.cocci
blob: 3b38090652e798edbf9f51c9e73d1676ec2548f8 (plain)
1
2
3
4
5
6
7
8
/* SPDX-License-Identifier: LGPL-2.1-or-later */
@@
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);