diff options
author | Andreas Schneider <asn@samba.org> | 2017-03-17 13:24:13 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-03-18 05:05:24 +0100 |
commit | 3605f68cead4c7c0552b4ad40ea7f2025299fc08 (patch) | |
tree | 4bccad68f0f8faad2ff66c4b32f1afdbc1713895 /source3/winbindd/wb_getpwsid.c | |
parent | 649deb63c5a2b034ff45bdafc9c8ef64535821f0 (diff) | |
download | samba-3605f68cead4c7c0552b4ad40ea7f2025299fc08.tar.gz |
s3:winbind: Use correct struct member for size calculation
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3/winbindd/wb_getpwsid.c')
-rw-r--r-- | source3/winbindd/wb_getpwsid.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |