Bill Holler <bill.hol...@sun.com> 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:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin j...@cs.tu-berlin.de (uni) joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code