summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-02-01 20:47:59 +0100
committerVolker Lendecke <vl@samba.org>2009-02-10 21:55:13 +0100
commit7ecaced8869541afd8a17c525e9b8387a8b20749 (patch)
tree6c986ba3822cb120d3d2d086bae3b7d1a0d567c5 /source3/libsmb
parente3569df15b28896f4f79733df28498da2c021efe (diff)
downloadsamba-7ecaced8869541afd8a17c525e9b8387a8b20749.tar.gz
samba-7ecaced8869541afd8a17c525e9b8387a8b20749.tar.bz2
samba-7ecaced8869541afd8a17c525e9b8387a8b20749.zip
Do not use strlen if not necessary... :-)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/cliconnect.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index a39e035d2a..dabfc398ce 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -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;