--On Monday, November 03, 2003 23:24:19 +0100 Peter Eisentraut <[EMAIL PROTECTED]> wrote:

Larry Rosenman writes:

> I'll try and write the patch as you suggest.
Here's a patch as you suggested:

Isn't there a way to write a test that actually triggers the bug we're trying to work around?
Here is what the SCO Folks said when I reported this back in August:

You can reduce the example down to

extern char *strcpy(char *, const char *);

        static void f(char *p, int n){
               strcpy(p+n,"");
        }
        void g(void){
               f(0, 0);
        }

compile with cc -O -Kinline

that will trip it.

I still think that using the __SCO_VERSION__ preprocessor symbol is the better idea.




-- Peter Eisentraut [EMAIL PROTECTED]



-- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 972-414-9812 E-Mail: [EMAIL PROTECTED] US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

Attachment: pgp00000.pgp
Description: PGP signature



Reply via email to