Make it clear that this is a fstrcpy().
authorAndrew Bartlett <abartlet@samba.org>
Sat, 8 Mar 2003 05:18:08 +0000 (05:18 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 8 Mar 2003 05:18:08 +0000 (05:18 +0000)
(This used to be commit c2a266b7b661d319e13982bfdbc3a86e8502b8a4)

source3/libsmb/clientgen.c

index 9598f4ac9642da4c55b72b72e8bd64f12e7e72b1..6ef7a7bd9c7ad4c77dca84839bc71b8ae8f10d72 100644 (file)
@@ -200,8 +200,8 @@ void cli_setup_bcc(struct cli_state *cli, void *p)
 void cli_init_creds(struct cli_state *cli, const struct ntuser_creds *usr)
 {
         /* copy_nt_creds(&cli->usr, usr); */
-       safe_strcpy(cli->domain   , usr->domain   , sizeof(usr->domain   )-1);
-       safe_strcpy(cli->user_name, usr->user_name, sizeof(usr->user_name)-1);
+       fstrcpy(cli->domain   , usr->domain);
+       fstrcpy(cli->user_name, usr->user_name);
        memcpy(&cli->pwd, &usr->pwd, sizeof(usr->pwd));
         cli->ntlmssp_flags = usr->ntlmssp_flags;
         cli->ntlmssp_cli_flgs = usr != NULL ? usr->ntlmssp_flags : 0;