1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

torture: Use sizeof() where appropriate

One magic number less that needs to be verified manually

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Volker Lendecke 2019-12-03 12:52:09 +01:00 committed by Ralph Boehme
parent f576c02bf9
commit a34d75f6f7

View File

@ -2058,7 +2058,9 @@ static bool test_durable_v2_reconnect_delay(struct torture_context *tctx,
previous_session_id = smb2cli_session_current_id(tree->session->smbXcli);
/* Choose a random name in case the state is left a little funky. */
snprintf(fname, 256, "durable_v2_reconnect_delay_%s.dat",
snprintf(fname,
sizeof(fname),
"durable_v2_reconnect_delay_%s.dat",
generate_random_str(tctx, 8));
smb2_util_unlink(tree, fname);