summaryrefslogtreecommitdiff
path: root/source3/torture/torture.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-01-11 12:04:14 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-01-11 12:04:14 +0000
commit73b0a2bdf8b667a5ad70bb4bcc08409e8c9ef7aa (patch)
treeb5a056ba7516c5b4f5073b8a98338b82ff57afe2 /source3/torture/torture.c
parent22d6569ed514bac025958d6cfdc99ec472a3f5cb (diff)
downloadsamba-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/torture.c')
-rw-r--r--source3/torture/torture.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 5b25002213..5466d8ef9e 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -4055,7 +4055,7 @@ static void usage(void)
get_myname(myname);
if (*username == 0 && getenv("LOGNAME")) {
- pstrcpy(username,getenv("LOGNAME"));
+ fstrcpy(username,getenv("LOGNAME"));
}
argc--;
@@ -4110,11 +4110,11 @@ static void usage(void)
#endif
break;
case 'U':
- pstrcpy(username,optarg);
+ fstrcpy(username,optarg);
p = strchr_m(username,'%');
if (p) {
*p = 0;
- pstrcpy(password, p+1);
+ fstrcpy(password, p+1);
gotpass = 1;
}
break;
@@ -4128,7 +4128,7 @@ static void usage(void)
while (!gotpass) {
p = getpass("Password:");
if (p) {
- pstrcpy(password, p);
+ fstrcpy(password, p);
gotpass = 1;
}
}