From owner-freebsd-bugs Wed Feb 7 05:50:04 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id FAA29469 for bugs-outgoing; Wed, 7 Feb 1996 05:50:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id FAA29444 Wed, 7 Feb 1996 05:50:02 -0800 (PST) Resent-Date: Wed, 7 Feb 1996 05:50:02 -0800 (PST) Resent-Message-Id: <199602071350.FAA29444@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, dglo@ssec.wisc.edu 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 ; 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 ; 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 Reply-To: dglo@ssec.wisc.edu To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: docs/1000: miscellaneous man-page bugs Sender: owner-bugs@freebsd.org Precedence: bulk >Number: 1000 >Category: docs >Synopsis: miscellaneous man page bugs >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Wed Feb 7 05:50:01 PST 1996 >Last-Modified: >Originator: Dave Glowacki >Organization: Me, Myself and I >Release: FreeBSD 2.1-STABLE i386 >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 :-) >Audit-Trail: >Unformatted: