summaryrefslogtreecommitdiff
path: root/source3/nmbd/nmbd_workgroupdb.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-03-15 21:45:45 +0000
committerJeremy Allison <jra@samba.org>2004-03-15 21:45:45 +0000
commitce0c99312c7da78679357610730ba5b60f4319b9 (patch)
treeb1b35c4e6bb6ab27e5d945f86fded1b86bc8daff /source3/nmbd/nmbd_workgroupdb.c
parent96c66b7be726b2361f18edde01d7b71e124e33e7 (diff)
downloadsamba-ce0c99312c7da78679357610730ba5b60f4319b9.tar.gz
samba-ce0c99312c7da78679357610730ba5b60f4319b9.tar.bz2
samba-ce0c99312c7da78679357610730ba5b60f4319b9.zip
Use "unix netbios name" type unstring - 64 bytes long to manipulate netbios
names in nmbd. Allows conversion from dos codepage mb strings (ie. SJIS) to expand to utf8 size on read. Jeremy. (This used to be commit 834d816caf9cd6318da00febde50d9233469dac2)
Diffstat (limited to 'source3/nmbd/nmbd_workgroupdb.c')
-rw-r--r--source3/nmbd/nmbd_workgroupdb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/nmbd/nmbd_workgroupdb.c b/source3/nmbd/nmbd_workgroupdb.c
index 3efef49c04..8880cb58bb 100644
--- a/source3/nmbd/nmbd_workgroupdb.c
+++ b/source3/nmbd/nmbd_workgroupdb.c
@@ -61,13 +61,13 @@ static struct work_record *create_workgroup(const char *name, int ttl)
errno = 0;
push_ascii_nstring(nname, name);
if (errno == E2BIG) {
- fstring tname;
+ unstring tname;
pull_ascii_nstring(tname, sizeof(tname), nname);
- fstrcpy(work->work_group,tname);
+ unstrcpy(work->work_group,tname);
DEBUG(0,("create_workgroup: workgroup name %s is too long. Truncating to %s\n",
name, tname));
} else {
- fstrcpy(work->work_group,name);
+ unstrcpy(work->work_group,name);
}
work->serverlist = NULL;