1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

Do not use strlen if not necessary... :-)

This commit is contained in:
Volker Lendecke 2009-02-01 20:47:59 +01:00
parent e3569df15b
commit 7ecaced886

View File

@ -188,10 +188,8 @@ struct async_req *cli_session_setup_guest_send(TALLOC_CTX *mem_ctx,
NULL);
bytes = smb_bytes_push_str(bytes, cli_ucs2(cli), "", 1, /* workgroup */
NULL);
bytes = smb_bytes_push_str(bytes, cli_ucs2(cli), "Unix",
strlen("Unix")+1, NULL);
bytes = smb_bytes_push_str(bytes, cli_ucs2(cli), "Samba",
strlen("Samba")+1, NULL);
bytes = smb_bytes_push_str(bytes, cli_ucs2(cli), "Unix", 5, NULL);
bytes = smb_bytes_push_str(bytes, cli_ucs2(cli), "Samba", 6, NULL);
if (bytes == NULL) {
return NULL;