summaryrefslogtreecommitdiff
path: root/source3/client/client.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-03-21 01:21:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:47 -0500
commit7ae9e6aff54f9c22b20432ff8a4996dc6a6b5a36 (patch)
tree06176d5fd54e1d51f5f0af33ed2904e592d062b3 /source3/client/client.c
parentea4dada48f404b1ee0caa7b128ddac9c224fc1f4 (diff)
downloadsamba-7ae9e6aff54f9c22b20432ff8a4996dc6a6b5a36.tar.gz
samba-7ae9e6aff54f9c22b20432ff8a4996dc6a6b5a36.tar.bz2
samba-7ae9e6aff54f9c22b20432ff8a4996dc6a6b5a36.zip
r21901: Don't use fstrcat when you mean fstrcpy. Doh !
Jeremy. (This used to be commit c7153411f1840e41470311db00d728e1461c56f6)
Diffstat (limited to 'source3/client/client.c')
-rw-r--r--source3/client/client.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 38023abec2..481fca8f84 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -1799,18 +1799,19 @@ static int cmd_posix_encrypt(void)
d_printf("posix_encrypt domain user password\n");
return 1;
}
- fstrcat(domain,buf);
+ fstrcpy(domain,buf);
+
if (!next_token_nr(NULL,buf,NULL,sizeof(buf))) {
d_printf("posix_encrypt domain user password\n");
return 1;
}
- fstrcat(user,buf);
+ fstrcpy(user,buf);
if (!next_token_nr(NULL,buf,NULL,sizeof(buf))) {
d_printf("posix_encrypt domain user password\n");
return 1;
}
- fstrcat(password,buf);
+ fstrcpy(password,buf);
status = cli_raw_ntlm_smb_encryption_start(cli,
user,