diff options
author | Gerald Carter <jerry@samba.org> | 2004-05-26 14:19:28 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2004-05-26 14:19:28 +0000 |
commit | 230e6b99c618fcc4ee94307f801fedf602b0dc38 (patch) | |
tree | bb7fe0c70983e9672ec70222b22fb98d03560def /source/lib | |
parent | dd97281b917a49b7dc91174482fa41610a263757 (diff) | |
download | samba-230e6b99c618fcc4ee94307f801fedf602b0dc38.tar.gz samba-230e6b99c618fcc4ee94307f801fedf602b0dc38.tar.xz samba-230e6b99c618fcc4ee94307f801fedf602b0dc38.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
Diffstat (limited to 'source/lib')
-rw-r--r-- | source/lib/charcnv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/charcnv.c b/source/lib/charcnv.c index b9791931a35..3d7678c34cb 100644 --- a/source/lib/charcnv.c +++ b/source/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); } /** |