1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

r2205: fixed an incorrect cast that broke relative strings in spoolss

(This used to be commit d2d3433de1c1e1bc757381e9736147cc24fe8cf0)
This commit is contained in:
Andrew Tridgell 2004-09-03 12:52:04 +00:00 committed by Gerald (Jerry) Carter
parent 6a2422932b
commit d0aee368a1

View File

@ -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++;