diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-09-03 12:52:04 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:58:31 -0500 |
commit | d0aee368a13191b456437c169b22187cd6c52ba8 (patch) | |
tree | a840c795e5e188462c6650f241a2614a61e9f1e0 | |
parent | 6a2422932bb36183ab2ec8d0909de45c3fc8db35 (diff) | |
download | samba-d0aee368a13191b456437c169b22187cd6c52ba8.tar.gz samba-d0aee368a13191b456437c169b22187cd6c52ba8.tar.bz2 samba-d0aee368a13191b456437c169b22187cd6c52ba8.zip |
r2205: fixed an incorrect cast that broke relative strings in spoolss
(This used to be commit d2d3433de1c1e1bc757381e9736147cc24fe8cf0)
-rw-r--r-- | source4/librpc/ndr/ndr_basic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/librpc/ndr/ndr_basic.c b/source4/librpc/ndr/ndr_basic.c index d015cc5e48..01205d4043 100644 --- a/source4/librpc/ndr/ndr_basic.c +++ b/source4/librpc/ndr/ndr_basic.c @@ -548,7 +548,7 @@ NTSTATUS ndr_pull_string(struct ndr_pull *ndr, int ndr_flags, const char **s) break; case LIBNDR_FLAG_STR_NULLTERM: - len1 = strnlen_w((const smb_ucs2_t *)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++; |