From 9b276fc77fc30638263be4593967da72f6f93c75 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 1 Sep 2003 18:28:09 +0000 Subject: [PATCH] Fix comment strings to 43 bytes as per spec. Jeremy. (This used to be commit f1ec43fae400455d20931ab2d3ecd8f9a6609050) --- source3/nmbd/nmbd_incomingdgrams.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source3/nmbd/nmbd_incomingdgrams.c b/source3/nmbd/nmbd_incomingdgrams.c index 49fad8e8675..f646e397162 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);