r907: fixing browse.dat bug -- don't include the resouce byte from the netbios name...
authorGerald Carter <jerry@samba.org>
Wed, 26 May 2004 14:19:28 +0000 (14:19 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:51:48 +0000 (10:51 -0500)
source/lib/charcnv.c

index b9791931a35d45b28cb508848f663248ec4d25eb..3d7678c34cb168decf8ef42e9adbd72513fcc76e 100644 (file)
@@ -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);
 }
 
 /**