summaryrefslogtreecommitdiff
path: root/coccinelle
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2016-02-11 17:57:18 +0100
committerMartin Pitt <martin.pitt@ubuntu.com>2016-02-11 17:57:18 +0100
commit4c89c718b555be6ac0b3bfb47f73255b637e16e5 (patch)
tree4fbfbf70320696c425c9140ef641908dfe2d2569 /coccinelle
parentdb2df898cc253402ff505259d09e0331a6f812c4 (diff)
downloadsystemd-4c89c718b555be6ac0b3bfb47f73255b637e16e5.tar.gz
Imported Upstream version 229
Diffstat (limited to 'coccinelle')
-rw-r--r--coccinelle/xsprintf.cocci6
1 files changed, 6 insertions, 0 deletions
diff --git a/coccinelle/xsprintf.cocci b/coccinelle/xsprintf.cocci
new file mode 100644
index 0000000000..401216ad72
--- /dev/null
+++ b/coccinelle/xsprintf.cocci
@@ -0,0 +1,6 @@
+@@
+expression e, fmt;
+expression list vaargs;
+@@
+- snprintf(e, sizeof(e), fmt, vaargs);
++ xsprintf(e, fmt, vaargs);