diff options
author | Jeremy Allison <jra@samba.org> | 2003-09-01 18:28:09 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-09-01 18:28:09 +0000 |
commit | 9b276fc77fc30638263be4593967da72f6f93c75 (patch) | |
tree | d08c41e988aad48cf4e59813f915f119d1c99e80 /source3 | |
parent | 39abb5caccc47ce6f16c3a0995e948076a314bf5 (diff) | |
download | samba-9b276fc77fc30638263be4593967da72f6f93c75.tar.gz samba-9b276fc77fc30638263be4593967da72f6f93c75.tar.bz2 samba-9b276fc77fc30638263be4593967da72f6f93c75.zip |
Fix comment strings to 43 bytes as per spec.
Jeremy.
(This used to be commit f1ec43fae400455d20931ab2d3ecd8f9a6609050)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/nmbd/nmbd_incomingdgrams.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/nmbd/nmbd_incomingdgrams.c b/source3/nmbd/nmbd_incomingdgrams.c index 49fad8e867..f646e39716 100644 --- a/source3/nmbd/nmbd_incomingdgrams.c +++ b/source3/nmbd/nmbd_incomingdgrams.c @@ -108,7 +108,7 @@ void process_host_announce(struct subnet_record *subrec, struct packet_struct *p START_PROFILE(host_announce); pull_ascii_fstring(comment, buf+31); - comment[12] = 0; + comment[42] = 0; pull_ascii_nstring(announce_name, buf+5); pull_ascii_nstring(source_name, dgram->source_name.name); @@ -209,7 +209,6 @@ void process_workgroup_announce(struct subnet_record *subrec, struct packet_stru pull_ascii_nstring(workgroup_announce_name,buf+5); pull_ascii_nstring(master_name,buf+31); - master_name[12] = 0; pull_ascii_nstring(source_name,dgram->source_name.name); pull_ascii_nstring(dest_name,dgram->dest_name.name); @@ -268,7 +267,7 @@ void process_local_master_announce(struct subnet_record *subrec, struct packet_s pull_ascii_nstring(server_name,buf+5); pull_ascii_fstring(comment, buf+31); - comment[12] = 0; + comment[42] = 0; pull_ascii_nstring(source_name, dgram->source_name.name); pull_ascii_nstring(work_name, dgram->dest_name.name); |