X-Original-To: pgsql-odbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 6CA399FA3D7 for ; Wed, 14 Jun 2006 18:29:12 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 73381-07-2 for ; Wed, 14 Jun 2006 18:29:06 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 2B18F9FA5C8 for ; Wed, 14 Jun 2006 18:29:04 -0300 (ADT) Received: (qmail 12293 invoked from network); 15 Jun 2006 06:29:00 +0900 X-Authentication: inoue was authenticated by smtp.tpf.co.jp at 15 Jun 2006 06:29:00 +0900 Received: from unknown (HELO ?192.168.11.2?) (219.61.40.10) by smtp.tpf.co.jp with SMTP; 15 Jun 2006 06:29:00 +0900 Message-ID: <44907F9B.2070106@tpf.co.jp> Date: Thu, 15 Jun 2006 06:28:59 +0900 From: Hiroshi Inoue User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Ludek Finstrle CC: pgsql-odbc@postgresql.org Subject: Re: Patch for snprintf problem (bug #1000650) 5-th try References: <20060607173910.GA28221@soptik.pzkagis.cz> <4488B6EA.9050107@tpf.co.jp> <20060609081637.GA8153@soptik.pzkagis.cz> <20060609121323.GA17258@soptik.pzkagis.cz> <20060613094617.GA28219@soptik.pzkagis.cz> <448EC7EA.1080405@tpf.co.jp> <20060614075054.GA10109@soptik.pzkagis.cz> In-Reply-To: <20060614075054.GA10109@soptik.pzkagis.cz> Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/108 X-Sequence-Number: 7856 Ludek Finstrle wrote: > Tue, Jun 13, 2006 at 11:12:58PM +0900, Hiroshi Inoue wrote: > >> Ludek Finstrle wrote: >> >>> I make patch againist CVS after yours huge commit. What's your opinion? >>> >>> >> Is the second parameter of snprintf_add needed ? >> Aren't the parameter values always strlen(the first parameter) ? >> > > You're right. I think more about it and "add" means add to the end > so I changed the patch as you pointed. > > >> Is snprintf_len needed instead of snprintf ? >> Though the current code ignores snprintf errors, it's simply >> my negligence.. >> > > I'm voting for keeping safer snprintf_len. But I can change it if > you wish. > > New patch attached. > OK please commit it. regards, Hiroshi Inoue