summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-08-23 07:08:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:15 -0500
commitae95563caf8f1c3e1ae4c88558732520c2c5df06 (patch)
treecd5bb2545235d3245b2a28971c7328ef3378dfff /source4
parentaca6a1e1ee46fea49a5290613347d2f1d4b235c8 (diff)
downloadsamba-ae95563caf8f1c3e1ae4c88558732520c2c5df06.tar.gz
samba-ae95563caf8f1c3e1ae4c88558732520c2c5df06.tar.bz2
samba-ae95563caf8f1c3e1ae4c88558732520c2c5df06.zip
r1994: fix compiler warning
metze (This used to be commit a3a4b9c9ea2692b3ca85d9a4a094e36609831f19)
Diffstat (limited to 'source4')
-rw-r--r--source4/librpc/ndr/ndr_basic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/librpc/ndr/ndr_basic.c b/source4/librpc/ndr/ndr_basic.c
index 43c469d4c5..34a1935c3b 100644
--- a/source4/librpc/ndr/ndr_basic.c
+++ b/source4/librpc/ndr/ndr_basic.c
@@ -523,7 +523,7 @@ NTSTATUS ndr_pull_string(struct ndr_pull *ndr, int ndr_flags, const char **s)
break;
case LIBNDR_FLAG_STR_NULLTERM:
- len1 = strnlen_w(ndr->data+ndr->offset,
+ len1 = strnlen_w((const smb_ucs2_t *)ndr->data+ndr->offset,
(ndr->data_size - ndr->offset)/2);
if (len1*2+2 <= ndr->data_size - ndr->offset) {
len1++;