summaryrefslogtreecommitdiff
path: root/source3/winbindd/wb_fill_pwent.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/winbindd/wb_fill_pwent.c')
-rw-r--r--source3/winbindd/wb_fill_pwent.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/winbindd/wb_fill_pwent.c b/source3/winbindd/wb_fill_pwent.c
index 37d45357db..6fad5f4360 100644
--- a/source3/winbindd/wb_fill_pwent.c
+++ b/source3/winbindd/wb_fill_pwent.c
@@ -131,7 +131,9 @@ static void wb_fill_pwent_sid2gid_done(struct tevent_req *subreq)
true);
}
- fstrcpy(state->pw->pw_name, output_username);
+ strlcpy(state->pw->pw_name,
+ output_username,
+ sizeof(state->pw->pw_name));
fstrcpy(state->pw->pw_gecos, state->info->full_name);
/* Home directory and shell */