From 06d5f27d9f7e211a9316f7f3d3706d99f378acfe Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Wed, 16 Jan 2013 07:56:43 -0500 Subject: Correct format security for talloc_named of auth tokens --- src/util/authtok.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util') diff --git a/src/util/authtok.c b/src/util/authtok.c index 684b07622..1c54d04cc 100644 --- a/src/util/authtok.c +++ b/src/util/authtok.c @@ -101,7 +101,7 @@ static errno_t sss_authtok_set_string(TALLOC_CTX *mem_ctx, size = len + 1; - tok->data = talloc_named(mem_ctx, size, context_name); + tok->data = talloc_named(mem_ctx, size, "%s", context_name); if (!tok->data) { return ENOMEM; } -- cgit