Fix warning messages caused by addition of null check in fstrcpy macro.
[kai/samba.git] / source3 / winbindd / wb_fill_pwent.c
index 37d45357db708afc7d6259d350da2d83524ce0e5..6fad5f43605f6b1047d244299a01d9b7fd0409f0 100644 (file)
@@ -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 */