summaryrefslogtreecommitdiff
path: root/source3/libsmb/namequery.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-03-13 00:28:55 +0000
committerJeremy Allison <jra@samba.org>2004-03-13 00:28:55 +0000
commite4a01b392c518d3706d86d4938ac85707fe275e6 (patch)
tree51f4521975981b21edc7ae40a9ba2ca07dbba5cf /source3/libsmb/namequery.c
parentf17b47b7fdd41d4daf16545a177bab9aafb2b14f (diff)
downloadsamba-e4a01b392c518d3706d86d4938ac85707fe275e6.tar.gz
samba-e4a01b392c518d3706d86d4938ac85707fe275e6.tar.bz2
samba-e4a01b392c518d3706d86d4938ac85707fe275e6.zip
First part of patch from moriyama@miraclelinux.com (MORIYAMA Masayuki) to
fix up netbios names with mb strings. Includes reformat of libsmb/nmblib.c so it's readable. Jeremy. (This used to be commit beca3829d1140bf7c2e394993a02dff1f2cf7bbd)
Diffstat (limited to 'source3/libsmb/namequery.c')
-rw-r--r--source3/libsmb/namequery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c
index 8bde6d37ea..b6d1f8bda2 100644
--- a/source3/libsmb/namequery.c
+++ b/source3/libsmb/namequery.c
@@ -202,7 +202,7 @@ BOOL name_status_find(const char *q_name, int q_type, int type, struct in_addr t
if (i == count)
goto done;
- pull_ascii(name, status[i].name, 16, 15, STR_TERMINATE);
+ pull_ascii_nstring(name, status[i].name);
/* Store the result in the cache. */
/* but don't store an entry for 0x1c names here. Here we have