Author: jra
Date: 2007-03-21 01:21:16 +0000 (Wed, 21 Mar 2007)
New Revision: 21901

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=21901

Log:
Don't use fstrcat when you mean fstrcpy. Doh !
Jeremy.

Modified:
   branches/SAMBA_3_0/source/client/client.c


Changeset:
Modified: branches/SAMBA_3_0/source/client/client.c
===================================================================
--- branches/SAMBA_3_0/source/client/client.c   2007-03-21 01:04:56 UTC (rev 
21900)
+++ branches/SAMBA_3_0/source/client/client.c   2007-03-21 01:21:16 UTC (rev 
21901)
@@ -1799,18 +1799,19 @@
                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,

Reply via email to