]> granicus.if.org Git - postgresql/commitdiff
Fix local domain structure size computation.
authorBruce Momjian <bruce@momjian.us>
Tue, 27 Jan 1998 04:08:28 +0000 (04:08 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 27 Jan 1998 04:08:28 +0000 (04:08 +0000)
src/include/libpq/pqcomm.h

index 5f8633f7e4cc2577818da11358a66d4d9ee85e2b..2a3445943319febd4d11c04dfafdc777ac0f88fb 100644 (file)
@@ -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))
 
 
 /*