summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-25 14:24:08 +0200
committerStefan Metzmacher <metze@samba.org>2013-04-30 16:02:19 +0200
commit5f82641553e33bc236b6c8a4f5cfc1cf3b722eea (patch)
treea2c8a6105b225b19664fe5e112b0d19a7b4f0d01 /source4/libcli
parentb8c1e30a6f2213c0dbb43a55bd5e1f498a610cab (diff)
downloadsamba-5f82641553e33bc236b6c8a4f5cfc1cf3b722eea.tar.gz
samba-5f82641553e33bc236b6c8a4f5cfc1cf3b722eea.tar.bz2
samba-5f82641553e33bc236b6c8a4f5cfc1cf3b722eea.zip
libsmb: Use sizeof instead of explicit numbers
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Apr 30 16:02:19 CEST 2013 on sn-devel-104
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/smb2/create.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/libcli/smb2/create.c b/source4/libcli/smb2/create.c
index 552ac931c4..1a7f02b070 100644
--- a/source4/libcli/smb2/create.c
+++ b/source4/libcli/smb2/create.c
@@ -218,9 +218,9 @@ struct smb2_request *smb2_create_send(struct smb2_tree *tree, struct smb2_create
return NULL;
}
- status = smb2_create_blob_add(req, &blobs,
- SMB2_CREATE_TAG_RQLS,
- data_blob_const(data, 32));
+ status = smb2_create_blob_add(
+ req, &blobs, SMB2_CREATE_TAG_RQLS,
+ data_blob_const(data, sizeof(data)));
if (!NT_STATUS_IS_OK(status)) {
talloc_free(req);
return NULL;
@@ -236,9 +236,9 @@ struct smb2_request *smb2_create_send(struct smb2_tree *tree, struct smb2_create
return NULL;
}
- status = smb2_create_blob_add(req, &blobs,
- SMB2_CREATE_TAG_RQLS,
- data_blob_const(data, 52));
+ status = smb2_create_blob_add(
+ req, &blobs, SMB2_CREATE_TAG_RQLS,
+ data_blob_const(data, sizeof(data)));
if (!NT_STATUS_IS_OK(status)) {
talloc_free(req);
return NULL;