diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-01-11 12:04:14 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-01-11 12:04:14 +0000 |
commit | 73b0a2bdf8b667a5ad70bb4bcc08409e8c9ef7aa (patch) | |
tree | b5a056ba7516c5b4f5073b8a98338b82ff57afe2 /source3/torture/locktest.c | |
parent | 22d6569ed514bac025958d6cfdc99ec472a3f5cb (diff) | |
download | samba-73b0a2bdf8b667a5ad70bb4bcc08409e8c9ef7aa.tar.gz samba-73b0a2bdf8b667a5ad70bb4bcc08409e8c9ef7aa.tar.bz2 samba-73b0a2bdf8b667a5ad70bb4bcc08409e8c9ef7aa.zip |
Fix a number of client-side fstring/pstring mixups.
Andrew Bartlett
(This used to be commit fe1cc779d5ea77e87dbc0e2edf7c34a354fee6e0)
Diffstat (limited to 'source3/torture/locktest.c')
-rw-r--r-- | source3/torture/locktest.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source3/torture/locktest.c b/source3/torture/locktest.c index a62f7af1ad..5f9a63802b 100644 --- a/source3/torture/locktest.c +++ b/source3/torture/locktest.c @@ -193,14 +193,14 @@ static struct cli_state *connect_one(char *share, int snum) if (!got_pass) { char *pass = getpass("Password: "); if (pass) { - pstrcpy(password[0], pass); - pstrcpy(password[1], pass); + fstrcpy(password[0], pass); + fstrcpy(password[1], pass); } } if (got_pass == 1) { - pstrcpy(password[1], password[0]); - pstrcpy(username[1], username[0]); + fstrcpy(password[1], password[0]); + fstrcpy(username[1], username[0]); } if (!cli_session_setup(c, username[snum], @@ -591,8 +591,8 @@ static void usage(void) load_interfaces(); if (getenv("USER")) { - pstrcpy(username[0],getenv("USER")); - pstrcpy(username[1],getenv("USER")); + fstrcpy(username[0],getenv("USER")); + fstrcpy(username[1],getenv("USER")); } seed = time(NULL); @@ -613,11 +613,11 @@ static void usage(void) d_printf("Max of 2 usernames\n"); exit(1); } - pstrcpy(username[got_pass],optarg); + fstrcpy(username[got_pass],optarg); p = strchr_m(username[got_pass],'%'); if (p) { *p = 0; - pstrcpy(password[got_pass], p+1); + fstrcpy(password[got_pass], p+1); got_pass++; } break; |