Author: tridge
Date: 2004-09-03 12:52:04 +0000 (Fri, 03 Sep 2004)
New Revision: 2205

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/librpc/ndr&rev=2205&nolog=1

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





Modified:
   branches/SAMBA_4_0/source/librpc/ndr/ndr_basic.c


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/ndr/ndr_basic.c
===================================================================
--- branches/SAMBA_4_0/source/librpc/ndr/ndr_basic.c    2004-09-03 12:10:34 UTC (rev 
2204)
+++ branches/SAMBA_4_0/source/librpc/ndr/ndr_basic.c    2004-09-03 12:52:04 UTC (rev 
2205)
@@ -548,7 +548,7 @@
                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++;

Reply via email to