From: Andreas Schneider Date: Fri, 17 Mar 2017 12:24:13 +0000 (+0100) Subject: s3:winbind: Use correct struct member for size calculation X-Git-Tag: tdb-1.3.13~440 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3605f68cead4c7c0552b4ad40ea7f2025299fc08;p=thirdparty%2Fsamba.git s3:winbind: Use correct struct member for size calculation Signed-off-by: Andreas Schneider Reviewed-by: Volker Lendecke --- diff --git a/source3/winbindd/wb_getpwsid.c b/source3/winbindd/wb_getpwsid.c index 8c764f77b08..56a6a29ee45 100644 --- a/source3/winbindd/wb_getpwsid.c +++ b/source3/winbindd/wb_getpwsid.c @@ -107,7 +107,7 @@ static void wb_getpwsid_queryuser_done(struct tevent_req *subreq) if (tevent_req_nomem(tmp, req)) { return; } - strlcpy(pw->pw_shell, tmp, sizeof(pw->pw_dir)); + strlcpy(pw->pw_shell, tmp, sizeof(pw->pw_shell)); TALLOC_FREE(tmp); strlcpy(pw->pw_passwd, "*", sizeof(pw->pw_passwd));