summaryrefslogtreecommitdiffstats
path: root/source/lib
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-05-26 14:19:28 +0000
committerGerald Carter <jerry@samba.org>2004-05-26 14:19:28 +0000
commit230e6b99c618fcc4ee94307f801fedf602b0dc38 (patch)
treebb7fe0c70983e9672ec70222b22fb98d03560def /source/lib
parentdd97281b917a49b7dc91174482fa41610a263757 (diff)
downloadsamba-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.c2
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);
}
/**