From d7fe63c91a0a824aa317e4f95665d589af5ce804 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 22 Jul 2022 19:34:57 +0200 Subject: [PATCH] winbind: Fix a "format string is not a string literal" warning Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/winbindd/winbindd_pam.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c index 1963163a865..a16c8d552ab 100644 --- a/source3/winbindd/winbindd_pam.c +++ b/source3/winbindd/winbindd_pam.c @@ -2256,7 +2256,8 @@ NTSTATUS _wbint_PamAuth(struct pipes_struct *p, } if (mapped_user != r->in.info->username) { - domain_user = talloc_asprintf("%s%c%s", + domain_user = talloc_asprintf(talloc_tos(), + "%s%c%s", name_domain, *lp_winbind_separator(), name_user); -- 2.47.3