From 51f62d505e2aba66bf7870c7bd005cd32e7d0953 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 25 Oct 1999 03:08:03 +0000 Subject: Standardize on MAXPGPATH as the size of a file pathname buffer, eliminating some wildly inconsistent coding in various parts of the system. I set MAXPGPATH = 1024 in config.h.in. If anyone is really convinced that there ought to be a configure-time test to set the value, go right ahead ... but I think it's a waste of time. --- src/backend/utils/adt/filename.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/utils/adt') diff --git a/src/backend/utils/adt/filename.c b/src/backend/utils/adt/filename.c index eb705b9f6b4..0a3871280dc 100644 --- a/src/backend/utils/adt/filename.c +++ b/src/backend/utils/adt/filename.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/filename.c,v 1.22 1999/07/17 20:17:55 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/filename.c,v 1.23 1999/10/25 03:07:49 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -31,7 +31,7 @@ filename_in(char *file) * (shexpand) */ - str = (char *) palloc(MAXPATHLEN * sizeof(*str)); + str = (char *) palloc(MAXPGPATH); str[0] = '\0'; if (file[0] == '~') { -- cgit v1.2.3