s3:winbind: Use correct struct member for size calculation
authorAndreas Schneider <asn@samba.org>
Fri, 17 Mar 2017 12:24:13 +0000 (13:24 +0100)
committerJeremy Allison <jra@samba.org>
Sat, 18 Mar 2017 04:05:24 +0000 (05:05 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/winbindd/wb_getpwsid.c

index 8c764f77b089edba09990baf52530a964445c5eb..56a6a29ee457b1e457f173774880e2bfb6272a3c 100644 (file)
@@ -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));