diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-01-12 16:03:48 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-01-12 16:03:48 +0100 |
commit | 45630488f9dc510c0b9da1932c5046160e6871ec (patch) | |
tree | 43606871b8012973ac6f3936d4887a5c658ce097 /coccinelle/xsprintf.cocci | |
parent | 1f52a79d4eb0216bf1f2d96539609f02d8bb9e71 (diff) | |
parent | d054f0a4d451120c26494263fc4dc175bfd405b1 (diff) |
Merge pull request #2308 from zonque/xsprintf
tree-wide: use xsprintf() where applicable
Diffstat (limited to 'coccinelle/xsprintf.cocci')
-rw-r--r-- | coccinelle/xsprintf.cocci | 6 |
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); |