From owner-freebsd-doc@FreeBSD.ORG Sat Aug 21 14:10:01 2010 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F2F17106564A for ; Sat, 21 Aug 2010 14:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B79618FC1E for ; Sat, 21 Aug 2010 14:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7LEA1Nj067723 for ; Sat, 21 Aug 2010 14:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7LEA17t067722; Sat, 21 Aug 2010 14:10:01 GMT (envelope-from gnats) Resent-Date: Sat, 21 Aug 2010 14:10:01 GMT Resent-Message-Id: <201008211410.o7LEA17t067722@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Aldis Berjoza Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0515A1065673 for ; Sat, 21 Aug 2010 14:09:22 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id E9D558FC21 for ; Sat, 21 Aug 2010 14:09:21 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o7LE9Lk5099373 for ; Sat, 21 Aug 2010 14:09:21 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o7LE9L7B099361; Sat, 21 Aug 2010 14:09:21 GMT (envelope-from nobody) Message-Id: <201008211409.o7LE9L7B099361@www.freebsd.org> Date: Sat, 21 Aug 2010 14:09:21 GMT From: Aldis Berjoza To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: docs/149852: [PATCH] fix 2x same lines in strcpy(3) and strncpy(3) X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Aug 2010 14:10:02 -0000 >Number: 149852 >Category: docs >Synopsis: [PATCH] fix 2x same lines in strcpy(3) and strncpy(3) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Sat Aug 21 14:10:01 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Aldis Berjoza >Release: >Organization: >Environment: >Description: ============ char * stpcpy(char * restrict dst, const char * restrict src); char * stpncpy(char * restrict dst, const char * restrict src, size_t len); char * strcpy(char * restrict dst, const char * restrict src); char * strncpy(char * restrict dst, const char * restrict src, size_t len); ============ should be ============ char * stpcpy(char * restrict dst, const char * restrict src); char * stpncpy(char * restrict dst, const char * restrict src, size_t len); ============ >How-To-Repeat: >Fix: Patch attached with submission follows: --- strncpy.3.bak 2010-08-21 17:06:36.000000000 +0300 +++ strncpy.3 2010-08-21 17:07:08.000000000 +0300 @@ -46,10 +46,6 @@ .Fn stpcpy "char * restrict dst" "const char * restrict src" .Ft char * .Fn stpncpy "char * restrict dst" "const char * restrict src" "size_t len" -.Ft char * -.Fn strcpy "char * restrict dst" "const char * restrict src" -.Ft char * -.Fn strncpy "char * restrict dst" "const char * restrict src" "size_t len" .Sh DESCRIPTION The .Fn stpcpy >Release-Note: >Audit-Trail: >Unformatted: