diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 1999-10-25 03:08:03 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 1999-10-25 03:08:03 +0000 |
commit | 51f62d505e2aba66bf7870c7bd005cd32e7d0953 (patch) | |
tree | 127e7cbbf6679dbc2e3cfd08786ab88a7a801f50 /src/backend/libpq/pqcomm.c | |
parent | 8a17ed63359325c567694fdd378e71803a53cc73 (diff) | |
download | postgresql-51f62d505e2aba66bf7870c7bd005cd32e7d0953.tar.gz postgresql-51f62d505e2aba66bf7870c7bd005cd32e7d0953.zip |
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/backend/libpq/pqcomm.c')
-rw-r--r-- | src/backend/libpq/pqcomm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/libpq/pqcomm.c b/src/backend/libpq/pqcomm.c index 7fc86d4ede3..44cdbd8984d 100644 --- a/src/backend/libpq/pqcomm.c +++ b/src/backend/libpq/pqcomm.c @@ -28,7 +28,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: pqcomm.c,v 1.85 1999/10/23 03:13:22 tgl Exp $ + * $Id: pqcomm.c,v 1.86 1999/10/25 03:07:44 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -155,7 +155,8 @@ pq_close(void) * Stream functions are used for vanilla TCP connection protocol. */ -static char sock_path[MAXPGPATH + 1] = ""; +static char sock_path[MAXPGPATH]; + /* StreamDoUnlink() * Shutdown routine for backend connection |