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: (view raw, whole thread or download thread mbox)
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


Attachment: path.c.locale.patch
Description: application/octet-stream (605 bytes)


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-2017 The PostgreSQL Global Development Group