From 54a8753f304bec05fe1a2007227ec8af11acf68b Mon Sep 17 00:00:00 2001 From: Daniel Mack Date: Tue, 12 Jan 2016 15:34:20 +0100 Subject: tree-wide: use xsprintf() where applicable Also add a coccinelle receipt to help with such transitions. --- coccinelle/xsprintf.cocci | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 coccinelle/xsprintf.cocci (limited to 'coccinelle') diff --git a/coccinelle/xsprintf.cocci b/coccinelle/xsprintf.cocci new file mode 100644 index 000000000..401216ad7 --- /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); -- cgit v1.2.3