[patch] CodeGuard fix - Mailing list pgsql-odbc

From Cyrille Chépélov
Subject [patch] CodeGuard fix
Date
Msg-id 3FE02368.8030101@softek.fr
Whole thread Raw
Responses Re: [patch] CodeGuard fix
List pgsql-odbc
Greetings,

the following patch (against 7.03.0200) contains two things:
    - The first hunk is necessary to build psqlodbc using Borland C++
Builder 6.0 [I successfully built the whole DLL, which requires a few
other patches]
    - The second hunk is necessary as Borland's sscanf would do all sorts
of things with rest[] when CodeGuard is active (I wonder if it's not
their way of hinting that we have an opportunity for a buffer overrun here).

I wonder if we shouldn't apply a better fix, to avoid entirely the "%s"
format argument to sscanf, and finding another way to locate a "const
char* rest" within the caller-supplied str?

Best Regards,

    -- Cyrille

pgsql-odbc by date:

Previous
From: "George A.J"
Date:
Subject: Bug correction
Next
From: Cyrille Chépélov
Date:
Subject: Re: [patch] CodeGuard fix