Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0519a96

Browse files
committed
Fix local domain structure size computation.
1 parent c4213ae commit 0519a96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/include/libpq/pqcomm.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: pqcomm.h,v 1.19 1998/01/26 01:42:21 scrappy Exp $
9+
* $Id: pqcomm.h,v 1.20 1998/01/27 04:08:28 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -35,7 +35,7 @@ typedef union SockAddr {
3535

3636
#define UNIXSOCK_PATH(sun,port) \
3737
(sprintf((sun).sun_path, "/tmp/.s.PGSQL.%d", (port)) + \
38-
sizeof ((sun).sun_family))
38+
sizeof ((sun).sun_len) + sizeof ((sun).sun_family))
3939

4040

4141
/*

0 commit comments

Comments
 (0)