summaryrefslogtreecommitdiff
path: root/coccinelle/xsprintf.cocci
blob: 401216ad728a431b6cef5227c5ac5123c60b31c7 (plain)
1
2
3
4
5
6
@@
expression e, fmt;
expression list vaargs;
@@
- snprintf(e, sizeof(e), fmt, vaargs);
+ xsprintf(e, fmt, vaargs);