X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 276D8D1C9C2 for ; Wed, 17 Dec 2003 09:36:46 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 95092-10 for ; Wed, 17 Dec 2003 05:36:16 -0400 (AST) Received: from mwinf0603.wanadoo.fr (smtp6.wanadoo.fr [193.252.22.25]) by svr1.postgresql.org (Postfix) with ESMTP id 7ABCBD1C9C5 for ; Wed, 17 Dec 2003 05:36:05 -0400 (AST) Received: from deb-server.int.softek.fr (AStrasbourg-101-2-1-147.w193-251.abo.wanadoo.fr [193.251.176.147]) by mwinf0603.wanadoo.fr (SMTP Server) with ESMTP id 57FCC24001C6 for ; Wed, 17 Dec 2003 10:36:06 +0100 (CET) Received: from [100.0.0.20] (helo=softek.fr) by deb-server.int.softek.fr with esmtp (Exim 4.24) id 1AWYAk-0002Uh-Vp for pgsql-odbc@postgresql.org; Wed, 17 Dec 2003 10:40:51 +0100 Message-ID: <3FE02368.8030101@softek.fr> Date: Wed, 17 Dec 2003 10:35:36 +0100 From: =?ISO-8859-15?Q?Cyrille_Ch=E9p=E9lov?= Organization: Softek SARL User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: [patch] CodeGuard fix Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/45 X-Sequence-Number: 3583 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