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

From: "Zeugswetter Andreas SB SD" <ZeugswetterA(at)spardat(dot)at>
To: <pgsql-patches(at)postgresql(dot)org>
Subject: path.c char[strlen("xxx")] not portable
Date: 2004-06-11 10:14:37
Message-ID: 46C15C39FEB2C44BA555E356FBCD6FA40184D0FC@m0114.s-mxs.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
path.c.locale.patch application/octet-stream 605 bytes

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Simon Riggs 2004-06-11 11:59:56 Fix for erroneous warning on Shutdown
Previous Message Andreas Pflug 2004-06-11 09:35:39 Re: Compiling libpq with VisualC