From nobody@FreeBSD.org  Sat Aug 21 14:09:22 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 0515A1065673
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <aldis@bsdroot.lv>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] fix 2x same lines in strcpy(3) and strncpy(3)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 21 14:10:01 UTC 2010
>Closed-Date:    Sun Aug 22 12:14:22 UTC 2010
>Last-Modified:  Sun Aug 22 12:14:22 UTC 2010
>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:

From: "Aldis Berjoza" <aldis@bsdroot.lv>
To: bug-followup@freebsd.org, aldis@bsdroot.lv
Cc:  
Subject: Re: docs/149852: [PATCH] fix 2x same lines in strcpy(3) and
 strncpy(3)
Date: Sun, 22 Aug 2010 15:02:50 +0300

 Uuups, my bad....
 just noticed... how big mistake I made....
 Sorry... I can't believe I missed it (I triple checked)
 
 close pr, since man is OK,
 I somehow show stp as str :D
 
 
 I'm very, very sorry
 
 
 -- 
 Aldis Berjoza
State-Changed-From-To: open->closed 
State-Changed-By: bcr 
State-Changed-When: Sun Aug 22 12:12:42 UTC 2010 
State-Changed-Why:  
Closed at sumbitters request (don't be sorry, to err is human). :) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=149852 
>Unformatted:
