diff options
author | Gerald Carter <jerry@samba.org> | 2004-05-26 14:19:28 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:51:48 -0500 |
commit | 5a3bc12683c6a21567a45ae927af6458dfd03263 (patch) | |
tree | cfdba80cd47de24dd9182fb83ff5483dc9edb6d5 /source3 | |
parent | a35d8f7db9fa7936ca2f68a70376f199104ec77c (diff) | |
download | samba-5a3bc12683c6a21567a45ae927af6458dfd03263.tar.gz samba-5a3bc12683c6a21567a45ae927af6458dfd03263.tar.bz2 samba-5a3bc12683c6a21567a45ae927af6458dfd03263.zip |
r907: fixing browse.dat bug -- don't include the resouce byte from the netbios name when pulling a string from a packet (jra, please double check this
(This used to be commit c9bef86b8b422c5cbb6e3e5d2abb96c6e4560c1e)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/charcnv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/charcnv.c b/source3/lib/charcnv.c index b9791931a3..3d7678c34c 100644 --- a/source3/lib/charcnv.c +++ b/source3/lib/charcnv.c @@ -932,7 +932,7 @@ size_t pull_ascii_fstring(char *dest, const void *src) size_t pull_ascii_nstring(char *dest, size_t dest_len, const void *src) { - return pull_ascii(dest, src, dest_len, sizeof(nstring), STR_TERMINATE); + return pull_ascii(dest, src, dest_len, sizeof(nstring)-1, STR_TERMINATE); } /** |