From hsu  Fri Jun  2 00:15:06 1995
Received: (from hsu@localhost)
          by freefall.cdrom.com (8.6.10/8.6.6) id AAA10426
          ; Fri, 2 Jun 1995 00:15:06 -0700
Message-Id: <199506020715.AAA10426@freefall.cdrom.com>
Date: Fri, 2 Jun 1995 00:15:06 -0700
From: Jeffrey Hsu <hsu>
Reply-To: hsu
To: FreeBSD-gnats-submit@freebsd.org
Subject: kvm_openfiles called w/ too small error buffer
X-Send-Pr-Version: 3.2

>Number:         476
>Category:       bin
>Synopsis:       kvm_openfiles called w/ too small error buffer
>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:   Fri Jun  2 00:20:00 1995
>Closed-Date:    Sat Jan 20 02:45:23 PST 1996
>Last-Modified:  Sat Jan 20 02:46:15 PST 1996
>Originator:     Jeffrey &
>Release:        FreeBSD 2.1.0-Development i386
>Organization:
>Environment:

	FreeBSD-current

>Description:

	bin/ps.c calls kvm_openfiles w/ errbuf[256] while the
	man page for kvm_openfiles says the size of the error
	buffer should be _POSIX2_LINE_MAX, which is 2048.

>How-To-Repeat:

	Eyeball the code.

>Fix:
	
	Change 256 to _POSIX2_LINE_MAX.  Or change documentation, whichever
	is appropriate.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mpp 
State-Changed-When: Sat Jan 20 02:45:23 PST 1996 
State-Changed-Why:  
Suggested fix implemented in rev 1.12 of bin/ps/ps.c. 
>Unformatted:


