Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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: path.c.locale.patch
Description: application/octet-stream (605 bytes)

Responses

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group