path.c char[strlen("xxx")] not portable - Mailing list pgsql-patches

From Zeugswetter Andreas SB SD
Subject path.c char[strlen("xxx")] not portable
Date
Msg-id 46C15C39FEB2C44BA555E356FBCD6FA40184D0FC@m0114.s-mxs.net
Whole thread Raw
Responses Re: path.c char[strlen("xxx")] not portable  (Bruce Momjian <pgman@candle.pha.pa.us>)
List 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

Attachment

pgsql-patches by date:

Previous
From: Andreas Pflug
Date:
Subject: Re: Compiling libpq with VisualC
Next
From: Simon Riggs
Date:
Subject: Fix for erroneous warning on Shutdown