summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2016-08-02 18:05:14 +1000
committerJeremy Allison <jra@samba.org>2016-08-24 01:33:50 +0200
commit5fb54d4d814288b796a075e01c054f607d6ce571 (patch)
tree9c42fb2ac06daaaa83c3f13e9d49255a7bad6de4 /lib
parentd123085f695745cc58f3d6882bfc7ce0893d8b84 (diff)
downloadsamba-5fb54d4d814288b796a075e01c054f607d6ce571.tar.gz
talloc: Fix format-nonliteral warning
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12168 Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/talloc/talloc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/talloc/talloc.c b/lib/talloc/talloc.c
index 09318e9b5ae..927b7f5e5f8 100644
--- a/lib/talloc/talloc.c
+++ b/lib/talloc/talloc.c
@@ -2476,8 +2476,12 @@ _PUBLIC_ char *talloc_strndup_append_buffer(char *s, const char *a, size_t n)
#endif
static struct talloc_chunk *_vasprintf_tc(const void *t,
- const char *fmt,
- va_list ap)
+ const char *fmt,
+ va_list ap) PRINTF_ATTRIBUTE(2,0);
+
+static struct talloc_chunk *_vasprintf_tc(const void *t,
+ const char *fmt,
+ va_list ap)
{
int len;
char *ret;