diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-01-11 12:18:57 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-01-11 12:18:57 +0000 |
commit | ad201867072cc509ab758c5c1c40847d7a925c32 (patch) | |
tree | d16eb042bfab97ebc4537fc73986576de47b0e14 /source3/rpcclient/rpcclient.c | |
parent | 1a6e78fda30518827b2ec64729a2914c7d761de3 (diff) | |
download | samba-ad201867072cc509ab758c5c1c40847d7a925c32.tar.gz samba-ad201867072cc509ab758c5c1c40847d7a925c32.tar.bz2 samba-ad201867072cc509ab758c5c1c40847d7a925c32.zip |
A couple more fstring/pstring issues - and move from sizeof(fstring) to
sizeof(var) in slprintf statements, so as to ensure we don't get mixups there.
Also remove fstrcpy() into a variable that is about to be printed into anyway.
Andrew Bartlett
(This used to be commit 9b761237321d475c324a3995fe6f0922550ae995)
Diffstat (limited to 'source3/rpcclient/rpcclient.c')
-rw-r--r-- | source3/rpcclient/rpcclient.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index ad5b0218ab..2609519dc4 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -646,11 +646,11 @@ static NTSTATUS process_cmd(struct cli_state *cli, char *cmd) case 'U': { char *lp; - pstrcpy(username,opt_username); + fstrcpy(username,opt_username); if ((lp=strchr_m(username,'%'))) { *lp = 0; - pstrcpy(password,lp+1); + fstrcpy(password,lp+1); got_pass = 1; memset(strchr_m(opt_username,'%') + 1, 'X', strlen(password)); @@ -664,7 +664,7 @@ static NTSTATUS process_cmd(struct cli_state *cli, char *cmd) return 1; } case 'W': - pstrcpy(domain, opt_domain); + fstrcpy(domain, opt_domain); break; } } |