>My gut feeling is that the existing bug should be closed "not-a-defect" >(if there is even a CR open for it), and Joerg (and any one else who has >code that made bad assumptions) needs to fix their code. > >If we are terribly concerned that there are other programs from ISVs >that have made this bad assumption, then perhaps we can supply a preload >shim which removes the optimization but retains the old semantic. (And >issue a warning to syslog perhaps as well, since we really want ISVs to >write correct code!) > >If you want correct semantics for overlapping strings, you should use >memmove.
I don't follow; strcpy is what *everyone* uses to remove single characters from a string. The problem Jörg is having a problem with s1 < s2 (otherwise the loop never terminated) Casper _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code