diff options
Diffstat (limited to 'source/client/client.c')
-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, |