From dglo@tick.SSEC.WISC.EDU  Wed Feb  7 05:46:56 1996
Received: from tick.SSEC.WISC.EDU (tick.ssec.wisc.edu [144.92.108.121])
          by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id FAA29284
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 7 Feb 1996 05:46:56 -0800 (PST)
Received: from tick.SSEC.WISC.EDU (localhost [127.0.0.1]) by tick.SSEC.WISC.EDU (8.7.1/8.7.1) with ESMTP id HAA14746 for <FreeBSD-gnats-submit@freebsd.org>; Wed, 7 Feb 1996 07:46:48 -0600 (CST)
Message-Id: <199602071346.HAA14746@tick.SSEC.WISC.EDU>
Date: Wed, 07 Feb 1996 07:46:47 -0600
From: dglo@ssec.wisc.edu
Sender: dglo@ssec.wisc.edu
Reply-To: dglo@ssec.wisc.edu
To: FreeBSD-gnats-submit@freebsd.org
Subject: miscellaneous man-page bugs
X-Send-Pr-Version: 3.2

>Number:         1000
>Category:       docs
>Synopsis:       miscellaneous man page bugs
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mpp
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb  7 05:50:01 PST 1996
>Closed-Date:    Tue Apr 9 15:00:44 PDT 1996
>Last-Modified:  Tue Apr  9 15:02:08 PDT 1996
>Originator:     Dave Glowacki
>Release:        FreeBSD 2.1-STABLE i386
>Organization:
Me, Myself and I
>Environment:
FreeBSD homeboy 2.1-STABLE FreeBSD 2.1-STABLE
>Description:

strcat.3 claims that:
	The strncat() function appends not more than count characters
but /usr/src/lib/libc/string/strncat.c (and the ANSI spec) says:
	At most strlen(dst)+n+1 bytes are written at dst
	(at most n+1 bytes being appended)

The description of format specifications in printf.1 says:
	diouXx	The argument is printed as a signed decimal (d or i), un-
		signed decimal, unsigned octal, or unsigned hexadecimal (X or
		x), respectively.
where 'unsigned decimal' and `unsigned octal' should probably be reversed,
as they are in the printf.3 man page

printf.3 has a minor formatting bug, so that the last sentence in the
description of the `0' flag says:
	If a precision is given with a numeric conversion
	(Mc d, i, o, u, i, x, and X), the `0' flag is ignored.
The `Mc' looks like an error.

>How-To-Repeat:

In the course of pulling together material for a C class, do:

	man strncat
	man 1 printf
	man 3 printf

while looking at the actual code :-)

>Fix:
	Please (ahhh, it's *so* nice to be on the other side of
	send-pr for a change :-)
>Release-Note:
>Audit-Trail:

From: Paul Traina <pst>
To: FreeBSD-gnats-submit
Cc:  Subject: docs/1000
Date: Thu, 8 Feb 1996 15:16:37 -0800 (PST)

 this is a test attachment.
Responsible-Changed-From-To: freebsd-bugs->mpp 
Responsible-Changed-By: gpalmer 
Responsible-Changed-When: Mon Apr 8 19:01:22 PDT 1996 
Responsible-Changed-Why:  
Mike seems to have taken man page problems on. 
State-Changed-From-To: open->closed 
State-Changed-By: mpp 
State-Changed-When: Tue Apr 9 15:00:44 PDT 1996 
State-Changed-Why:  
Suggested changes applied. 
>Unformatted:
