diff options
author | Jeremy Allison <jra@samba.org> | 2004-03-15 21:53:59 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2004-03-15 21:53:59 +0000 |
commit | 8613940ce69c488dc19fb0c3e434f8801511ec2d (patch) | |
tree | 94b9fb4a15f3a5931465e19e13179ba3c75db923 /source3/nmbd/nmbd_sendannounce.c | |
parent | b5805b04da06fe37db70ebba4bfa33d3c3f6a9cb (diff) | |
download | samba-8613940ce69c488dc19fb0c3e434f8801511ec2d.tar.gz samba-8613940ce69c488dc19fb0c3e434f8801511ec2d.tar.bz2 samba-8613940ce69c488dc19fb0c3e434f8801511ec2d.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 b9da3e941d4233c2d3931f32767f3e51b214033e)
Diffstat (limited to 'source3/nmbd/nmbd_sendannounce.c')
-rw-r--r-- | source3/nmbd/nmbd_sendannounce.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/nmbd/nmbd_sendannounce.c b/source3/nmbd/nmbd_sendannounce.c index 87908e352c..6e50d2f2ff 100644 --- a/source3/nmbd/nmbd_sendannounce.c +++ b/source3/nmbd/nmbd_sendannounce.c @@ -525,7 +525,7 @@ void browse_sync_remote(time_t t) struct work_record *work; pstring outbuf; char *p; - fstring myname; + unstring myname; if (last_time && (t < (last_time + REMOTE_ANNOUNCE_INTERVAL))) return; @@ -558,7 +558,7 @@ for workgroup %s on subnet %s.\n", lp_workgroup(), FIRST_SUBNET->subnet_name )); SCVAL(p,0,ANN_MasterAnnouncement); p++; - fstrcpy(myname, global_myname()); + unstrcpy(myname, global_myname()); strupper_m(myname); myname[15]='\0'; push_pstring_base(p, myname, outbuf); |