docs/149852: [PATCH] fix 2x same lines in strcpy(3) and strncpy(3)

Aldis Berjoza aldis at bsdroot.lv
Sat Aug 21 14:10:02 UTC 2010


>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:



More information about the freebsd-doc mailing list