Bill Holler <[email protected]> wrote:

> More information is available.  strcpy was intentionally written this way for 
> performance not due
> to a copy-paste bug.  These overlapping cases where not validated because 
> overlapping
> strings is explicitly undefined.

Well, strcpy() _was_ definitely not undefined for overlapping strings,
see older UNIX man pages. The strcpy() definition rather has been changed 
because some people felt that it could allow them to write cheap and fast 
implementations. 

Jörg

-- 
 EMail:[email protected] (home) Jörg Schilling D-13353 Berlin
       [email protected]                (uni)  
       [email protected] (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to