Re: [HACKERS] 【ECPG】strncpy functiondoes not set the end character '\0'

Поиск
Список
Период
Сортировка
От Michael Meskes
Тема Re: [HACKERS] 【ECPG】strncpy functiondoes not set the end character '\0'
Дата
Msg-id 1504795822.3276.291.camel@postgresql.org
обсуждение исходный текст
Ответ на Re: [HACKERS] 【ECPG】strncpy function does not set the end character '\0'  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> Oh.  If there's actually a standard somewhere that says it's not
> null-terminated, then code that is expecting it to be so is just
> wrong.  No need to change anything in ecpg, IMO.

As I said I haven't checked if this detail is actually in there, but I
guess it was because there is a reason why we, and other databases,
define it that way.

Michael
-- 
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Meskes at (Debian|Postgresql) dot Org
Jabber: michael at xmpp dot meskes dot org
VfL Borussia! Força Barça! SF 49ers! Use Debian GNU/Linux, PostgreSQL



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] 【ECPG】strncpy function does not set the end character '\0'
Следующее
От: Chris Travers
Дата:
Сообщение: Re: [HACKERS] Proposal: pg_rewind to skip config files