diff options
author | Jeremy Allison <jra@samba.org> | 2007-03-21 01:21:16 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:18:47 -0500 |
commit | c7153411f1840e41470311db00d728e1461c56f6 (patch) | |
tree | c8a922cc9cc7d646cd39a993ca8723a81e007cbc /source/client | |
parent | 6bd7c05290909ef9f5f377dd141a64ed0d654134 (diff) | |
download | samba-c7153411f1840e41470311db00d728e1461c56f6.tar.gz samba-c7153411f1840e41470311db00d728e1461c56f6.tar.xz samba-c7153411f1840e41470311db00d728e1461c56f6.zip |
r21901: Don't use fstrcat when you mean fstrcpy. Doh !
Jeremy.
Diffstat (limited to 'source/client')
-rw-r--r-- | source/client/client.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/client/client.c b/source/client/client.c index 38023abec29..481fca8f84d 100644 --- a/source/client/client.c +++ b/source/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, |