diff options
author | Stef Walter <stef@thewalter.net> | 2013-07-17 18:26:31 +0200 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2013-07-18 13:04:37 +0200 |
commit | 29a5df009656dc09be781c4939cec3613a0a12cb (patch) | |
tree | 42b38e3f6e432d157e020244473c1d1ef06ed41c /common | |
parent | 9a1fe66f08149596567fedb4e2338ae786a19ab9 (diff) |
attrs: Check printf formatting in buffer_append_printf()
https://bugzilla.redhat.com/show_bug.cgi?id=985497
Diffstat (limited to 'common')
-rw-r--r-- | common/attrs.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |