path.c char[strlen("xxx")] not portable

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas SB SD
Тема path.c char[strlen("xxx")] not portable
Дата
Msg-id 46C15C39FEB2C44BA555E356FBCD6FA40184D0FC@m0114.s-mxs.net
обсуждение исходный текст
Ответы Re: path.c char[strlen("xxx")] not portable  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
strlen inside variable declaration is not portable C (AIX):

char env_path[MAXPGPATH + strlen("PGLOCALEDIR=")];

use sizeof instead.

Please apply to current

Andreas

Вложения

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

Предыдущее
От: Andreas Pflug
Дата:
Сообщение: Re: Compiling libpq with VisualC
Следующее
От: Simon Riggs
Дата:
Сообщение: Fix for erroneous warning on Shutdown