Re: Patch for snprintf problem (bug #1000650) - Mailing list pgsql-odbc

From Ludek Finstrle
Subject Re: Patch for snprintf problem (bug #1000650)
Date
Msg-id 20060607201516.GA28714@soptik.pzkagis.cz
Whole thread Raw
In response to Patch for snprintf problem (bug #1000650)  (Ludek Finstrle <luf@pzkagis.cz>)
List pgsql-odbc
> I solve it this way (main idea):
> snprintf(buf + strlen(buf), " append");

Ugh typo mistake:

 snprintf(buf + strlen(buf), sizeof(buf), " append");

My hands are faster than my head :-(
There is buffer overrun erron becouse I have to decrease sizeof(buf) with
strlen(buf).

So I attach second try of this patch againist CVS HEAD.

Comments are welcome

Luf

Attachment

pgsql-odbc by date:

Previous
From: Ludek Finstrle
Date:
Subject: Re: DescribParam
Next
From: Hiroshi Inoue
Date:
Subject: Re: DescribParam