From: Jeremy Allison Date: Wed, 21 Mar 2007 01:21:16 +0000 (+0000) Subject: r21901: Don't use fstrcat when you mean fstrcpy. Doh ! X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~896 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c7153411f1840e41470311db00d728e1461c56f6;p=thirdparty%2Fsamba.git r21901: Don't use fstrcat when you mean fstrcpy. Doh ! Jeremy. --- 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,