diff options
author | Tom Lane | 1999-10-25 03:08:03 +0000 |
---|---|---|
committer | Tom Lane | 1999-10-25 03:08:03 +0000 |
commit | 51f62d505e2aba66bf7870c7bd005cd32e7d0953 (patch) | |
tree | 127e7cbbf6679dbc2e3cfd08786ab88a7a801f50 /src/bin/psql/psql.c | |
parent | 8a17ed63359325c567694fdd378e71803a53cc73 (diff) |
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.
Diffstat (limited to 'src/bin/psql/psql.c')
-rw-r--r-- | src/bin/psql/psql.c | 6 |
1 files changed, 2 insertions, 4 deletions
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 <windows.h> #include <io.h> #else -#include <sys/param.h> /* for MAXPATHLEN */ #include <sys/ioctl.h> #include <unistd.h> #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]; |