diff options
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/locktest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/torture/locktest.c b/source3/torture/locktest.c index 27e3a13133..242099092b 100644 --- a/source3/torture/locktest.c +++ b/source3/torture/locktest.c @@ -232,8 +232,8 @@ static struct cli_state *connect_one(char *share, int snum) } if (got_pass == 1) { - fstrcpy(password[1], password[0]); - fstrcpy(username[1], username[0]); + strlcpy(password[1], password[0],sizeof(password[1])); + strlcpy(username[1], username[0],sizeof(username[1])); } status = cli_session_setup(c, username[snum], |