From 29a5df009656dc09be781c4939cec3613a0a12cb Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 17 Jul 2013 18:26:31 +0200 Subject: attrs: Check printf formatting in buffer_append_printf() https://bugzilla.redhat.com/show_bug.cgi?id=985497 --- common/attrs.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'common') diff --git a/common/attrs.c b/common/attrs.c index 8054e38..b06a342 100644 --- a/common/attrs.c +++ b/common/attrs.c @@ -516,6 +516,11 @@ p11_attr_hash (const void *data) static void buffer_append_printf (p11_buffer *buffer, const char *format, + ...) GNUC_PRINTF(2, 3); + +static void +buffer_append_printf (p11_buffer *buffer, + const char *format, ...) { char *string; -- cgit v1.1