From archie@whistle.com  Thu Oct 31 14:50:30 1996
Received: from whistle.com (s205m131.whistle.com [207.76.205.131])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id OAA14226
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 31 Oct 1996 14:50:30 -0800 (PST)
Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id OAA09266 for <FreeBSD-gnats-submit@freebsd.org>; Thu, 31 Oct 1996 14:49:59 -0800 (PST)
Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3)
	id sma009262; Thu Oct 31 14:49:39 1996
Received: (from archie@localhost) by bubba.whistle.com (8.7.5/8.6.12) id OAA01294; Thu, 31 Oct 1996 14:49:39 -0800 (PST)
Message-Id: <199610312249.OAA01294@bubba.whistle.com>
Date: Thu, 31 Oct 1996 14:49:39 -0800 (PST)
From: Archie Cobbs <archie@whistle.com>
Reply-To: archie@whistle.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: minor bug in inetd(8)
X-Send-Pr-Version: 3.2

>Number:         1937
>Category:       bin
>Synopsis:       incorrect buffer initialization
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 31 15:00:01 PST 1996
>Closed-Date:    Thu Oct 31 17:41:28 PST 1996
>Last-Modified:  Thu Oct 31 17:42:47 PST 1996
>Originator:     Archie Cobbs
>Release:        FreeBSD 2.2-960801-SNAP i386
>Organization:
Whistle Communications, Inc.
>Environment:

>Description:

	Incorrect length argument to memset() function

>How-To-Repeat:

>Fix:

Index: inetd.c
===================================================================
RCS file: /tribe/cvs/freebsd/src/usr.sbin/inetd/inetd.c,v
retrieving revision 1.14
diff -c -r1.14 inetd.c
*** inetd.c	1996/10/28 23:02:38	1.14
--- inetd.c	1996/10/31 22:47:40
***************
*** 354,360 ****
  #define	DUMMYSIZE	100
  		char dummy[DUMMYSIZE];
  
! 		(void)memset(dummy, 'x', sizeof(DUMMYSIZE) - 1);
  		dummy[DUMMYSIZE - 1] = '\0';
  		(void)setenv("inetd_dummy", dummy, 1);
  	}
--- 354,360 ----
  #define	DUMMYSIZE	100
  		char dummy[DUMMYSIZE];
  
! 		(void)memset(dummy, 'x', DUMMYSIZE - 1);
  		dummy[DUMMYSIZE - 1] = '\0';
  		(void)setenv("inetd_dummy", dummy, 1);
  	}

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: alex 
State-Changed-When: Thu Oct 31 17:41:28 PST 1996 
State-Changed-Why:  
Fixed in rev 1.15 of inetd.c. 
>Unformatted:
