diff options
author | Gerald Carter <jerry@samba.org> | 2000-08-04 12:42:19 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2000-08-04 12:42:19 +0000 |
commit | 394795e28b00eb95759938770cd24ee7c75ed39d (patch) | |
tree | 7a1f8e5b5df2b88259a06248df4b14b6cc9a1884 /source3/include | |
parent | 553579bf6fd7c9dfecddddc1f6272b523bce69d9 (diff) | |
download | samba-394795e28b00eb95759938770cd24ee7c75ed39d.tar.gz samba-394795e28b00eb95759938770cd24ee7c75ed39d.tar.bz2 samba-394795e28b00eb95759938770cd24ee7c75ed39d.zip |
After talking with Jeremy and JF (and staring at packet traces between
NT <-> NT), I've come to realize that UNISTR2 strings should be NULL
terminated.
jerry
(This used to be commit c8f9e54beafcb0c0668f1510e7693dbf22485aa8)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/rpc_misc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/include/rpc_misc.h b/source3/include/rpc_misc.h index 6e585e7a0e..6fb2d63ed4 100644 --- a/source3/include/rpc_misc.h +++ b/source3/include/rpc_misc.h @@ -171,7 +171,9 @@ typedef struct unistr2_info uint32 uni_max_len; uint32 undoc; uint32 uni_str_len; - /* unicode characters. ***MUST*** be little-endian. **NOT** necessarily null-terminated */ + /* unicode characters. ***MUST*** be little-endian. + **must** be null-terminated and the uni_str_len should include + the NULL character */ uint16 *buffer; } UNISTR2; |