[illumos-Developer] webrev #953 amd64 mdb chews arguments to ::run?

Dan McDonald danmcd at nexenta.com
Mon May 16 07:04:58 PDT 2011


On Mon, May 16, 2011 at 05:56:52PM +0400, Yuri Pankov wrote:
> On Mon, May 16, 2011 at 09:48:36AM -0400, Dan McDonald wrote:
> > I just RTFM and noticed:
> > 
> >   strcpy(), strncpy(), strlcpy()
> >      The strcpy() function copies string s2 to s1, including  the
> >      terminating  null character, stopping after the null charac-
> >      ter has been copied. The strncpy() function copies exactly n
> >      bytes,  truncating  s2  or  adding  null characters to s1 if
> >      necessary. The result will not  be  null-terminated  if  the
> >      length  of  s2  is  n or more. Each function returns s1.  If
> >      copying  takes  place  between  objects  that  overlap,  the
> >      behavior of strcpy(), strncpy(), and strlcpy() is undefined.
> 
> This quote doesn't include the strlcpy() description, which definitely
> looks like a candidate to be used here.

Uhhh, it *does* include strlcpy() in the list of functions, it's the third
one in the list in the last sentence.  strlcpy() gets its own paragraph
(after this one) for its functional description.

At worst, you've a man-page bug for string(3C) w.r.t. its organization.

Dan



More information about the Developer mailing list