Fix warning messages caused by addition of null check in fstrcpy macro.
[kai/samba.git] / source3 / torture / locktest.c
index 27e3a131335d5ea850f8190c833c5a4474710b08..242099092b6ab90735212893cdfd199702af47e9 100644 (file)
@@ -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],