Re: Patch for snprintf problem (bug #1000650)

Поиск
Список
Период
Сортировка
От Ludek Finstrle
Тема Re: Patch for snprintf problem (bug #1000650)
Дата
Msg-id 20060607201516.GA28714@soptik.pzkagis.cz
обсуждение исходный текст
Ответ на Patch for snprintf problem (bug #1000650)  (Ludek Finstrle <luf@pzkagis.cz>)
Список 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

Вложения

В списке pgsql-odbc по дате отправления:

Предыдущее
От: Ludek Finstrle
Дата:
Сообщение: Re: DescribParam
Следующее
От: Hiroshi Inoue
Дата:
Сообщение: Re: DescribParam