From: Volker Lendecke Date: Fri, 22 Jul 2022 17:34:57 +0000 (+0200) Subject: winbind: Fix a "format string is not a string literal" warning X-Git-Tag: tevent-0.13.0~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d7fe63c91a0a824aa317e4f95665d589af5ce804;p=thirdparty%2Fsamba.git winbind: Fix a "format string is not a string literal" warning Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- 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);