1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-24 21:49:29 +03:00

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

This commit is contained in:
Andrew Tridgell
2004-09-03 12:52:04 +00:00
committed by Gerald (Jerry) Carter
parent bd45329a3f
commit d2d3433de1

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