summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian1998-01-27 04:08:28 +0000
committerBruce Momjian1998-01-27 04:08:28 +0000
commit0519a96546ebc347f729c3823eff9c0045b539eb (patch)
tree30f2f54f9357d04186f736ca637b1c154ea0a4be
parentc4213aede1a3ba1e63203358d52587550badfda8 (diff)
Fix local domain structure size computation.
-rw-r--r--src/include/libpq/pqcomm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/libpq/pqcomm.h b/src/include/libpq/pqcomm.h
index 5f8633f7e4c..2a344594331 100644
--- a/src/include/libpq/pqcomm.h
+++ b/src/include/libpq/pqcomm.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: pqcomm.h,v 1.19 1998/01/26 01:42:21 scrappy Exp $
+ * $Id: pqcomm.h,v 1.20 1998/01/27 04:08:28 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -35,7 +35,7 @@ typedef union SockAddr {
#define UNIXSOCK_PATH(sun,port) \
(sprintf((sun).sun_path, "/tmp/.s.PGSQL.%d", (port)) + \
- sizeof ((sun).sun_family))
+ sizeof ((sun).sun_len) + sizeof ((sun).sun_family))
/*