summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-03-08 05:18:08 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-03-08 05:18:08 +0000
commitbbf8961b284a877b5cfa4101e0fd677664a867f1 (patch)
treec5b207820615f166e9d2d403cd732526b84a75b6 /source3/libsmb
parent7b2409214febbf7deaec434df50e7b090905e7f1 (diff)
downloadsamba-bbf8961b284a877b5cfa4101e0fd677664a867f1.tar.gz
samba-bbf8961b284a877b5cfa4101e0fd677664a867f1.tar.bz2
samba-bbf8961b284a877b5cfa4101e0fd677664a867f1.zip
Make it clear that this is a fstrcpy().
(This used to be commit c2a266b7b661d319e13982bfdbc3a86e8502b8a4)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clientgen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 9598f4ac96..6ef7a7bd9c 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -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;