From 0f985dcb1978afd4b383116f01b3acf65c39ecd7 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sun, 9 Apr 2006 19:39:38 +0000 Subject: r15012: Fix bug #2715. Fix suggested by ISHIKAWA Tomonori No need to null terminate early, pull_ascii_fstring will do this. Jeremy. (This used to be commit b1bbe568313001f4b4e49382742e4b819c0a2b03) --- source3/nmbd/nmbd_incomingdgrams.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'source3/nmbd') diff --git a/source3/nmbd/nmbd_incomingdgrams.c b/source3/nmbd/nmbd_incomingdgrams.c index 53b1947157..09eb7bfa86 100644 --- a/source3/nmbd/nmbd_incomingdgrams.c +++ b/source3/nmbd/nmbd_incomingdgrams.c @@ -108,7 +108,6 @@ void process_host_announce(struct subnet_record *subrec, struct packet_struct *p START_PROFILE(host_announce); pull_ascii_fstring(comment, buf+31); - comment[42] = 0; pull_ascii_nstring(announce_name, sizeof(announce_name), buf+5); pull_ascii_nstring(source_name, sizeof(source_name), dgram->source_name.name); @@ -267,7 +266,6 @@ void process_local_master_announce(struct subnet_record *subrec, struct packet_s pull_ascii_nstring(server_name,sizeof(server_name),buf+5); pull_ascii_fstring(comment, buf+31); - comment[42] = 0; pull_ascii_nstring(source_name, sizeof(source_name), dgram->source_name.name); pull_ascii_nstring(work_name, sizeof(work_name), dgram->dest_name.name); -- cgit