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/bin/psql/psql.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/bin/psql/psql.c') diff --git a/src/bin/psql/psql.c b/src/bin/psql/psql.c index 89bd8e8e1f2..e61ac491446 100644 --- a/src/bin/psql/psql.c +++ b/src/bin/psql/psql.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.193 1999/10/23 01:31:32 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.194 1999/10/25 03:07:54 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -19,7 +19,6 @@ #include #include #else -#include /* for MAXPATHLEN */ #include #include #endif @@ -76,7 +75,6 @@ #define open(x,y,z) _open(x,y,z) #define strcasecmp(x,y) stricmp(x,y) #define pqsignal(x,y) -#define MAXPATHLEN MAX_PATH #define R_OK 0 /* getopt is not in the standard includes on Win32 */ @@ -1495,7 +1493,7 @@ do_copy(const char *args, PsqlSettings *pset) bool from; /* The direction of the copy is from a file to a table. */ - char file[MAXPATHLEN + 1]; + char file[MAXPGPATH]; /* The pathname of the file from/to which we copy */ char table[NAMEDATALEN]; -- cgit v1.2.3