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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] 【ECPG】strncpy function does not set the end character '\0'
Дата
Msg-id 7561.1504794841@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] 【ECPG】strncpy functiondoes not set the end character '\0'  (Michael Meskes <meskes@postgresql.org>)
Ответы Re: [HACKERS] 【ECPG】strncpy functiondoes not set the end character '\0'  (Michael Meskes <meskes@postgresql.org>)
Список pgsql-hackers
Michael Meskes <meskes@postgresql.org> writes:
> With "supposed" I was referring to the standard that defines SQLCA.

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.
        regards, tom lane



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

Предыдущее
От: Michael Meskes
Дата:
Сообщение: Re: [HACKERS] 【ECPG】strncpy functiondoes not set the end character '\0'
Следующее
От: Michael Meskes
Дата:
Сообщение: Re: [HACKERS] 【ECPG】strncpy functiondoes not set the end character '\0'