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 4C3BFD1B439 for ; Wed, 17 Dec 2003 10:00:50 +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 98601-10 for ; Wed, 17 Dec 2003 06:00:21 -0400 (AST) Received: from mwinf0302.wanadoo.fr (smtp3.wanadoo.fr [193.252.22.28]) by svr1.postgresql.org (Postfix) with ESMTP id D3AE9D1C981 for ; Wed, 17 Dec 2003 06:00:10 -0400 (AST) Received: from deb-server.int.softek.fr (AStrasbourg-101-2-1-147.w193-251.abo.wanadoo.fr [193.251.176.147]) by mwinf0302.wanadoo.fr (SMTP Server) with ESMTP id C21CDC000249 for ; Wed, 17 Dec 2003 11:00:06 +0100 (CET) Received: from [100.0.0.20] (helo=softek.fr) by deb-server.int.softek.fr with esmtp (Exim 4.24) id 1AWYXz-0002WZ-Oz for pgsql-odbc@postgresql.org; Wed, 17 Dec 2003 11:04:51 +0100 Message-ID: <3FE02909.5070404@softek.fr> Date: Wed, 17 Dec 2003 10:59:37 +0100 From: =?ISO-8859-1?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: Re: [patch] CodeGuard fix References: <3FE02368.8030101@softek.fr> In-Reply-To: <3FE02368.8030101@softek.fr> Content-Type: multipart/mixed; boundary="------------040709070205060709090405" X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/46 X-Sequence-Number: 3584 This is a multi-part message in MIME format. --------------040709070205060709090405 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Cyrille Ch=E9p=E9lov wrote: > the following patch (against 7.03.0200) contains two things: Note to self: ensure proper blood caffeine content before sending messages. -- Cyrille --------------040709070205060709090405 Content-Type: text/plain; name="convert.c.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="convert.c.diff" --- psqlodbc-07.03.0200.vanilla/convert.c 2003-10-20 04:37:42.000000000 +0200 +++ psqlodbc-07.03.0200/convert.c 2003-12-17 10:24:12.000000000 +0100 @@ -44,9 +44,15 @@ #endif #ifdef __CYGWIN__ -#define TIMEZONE_GLOBAL _timezone +# define TIMEZONE_GLOBAL _timezone #elif defined(WIN32) || defined(HAVE_INT_TIMEZONE) -#define TIMEZONE_GLOBAL timezone +# ifdef __BORLANDC__ +# define timezone _timzone +# define daylight _daylight +# define TIMEZONE_GLOBAL _timezone +# else +# define TIMEZONE_GLOBAL timezone +# endif #endif /* @@ -195,6 +201,7 @@ *zone = 0; st->fr = 0; st->infinity = 0; + rest[0] = 0; if ((scnt = sscanf(str, "%4d-%2d-%2d %2d:%2d:%2d%s", &st->y, &st->m, &st->d, &st->hh, &st->mm, &st->ss, rest)) < 6) return FALSE; else if (scnt == 6) --------------040709070205060709090405--