We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4213ae commit 0519a96Copy full SHA for 0519a96
src/include/libpq/pqcomm.h
@@ -6,7 +6,7 @@
6
*
7
* Copyright (c) 1994, Regents of the University of California
8
9
- * $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 $
10
11
*-------------------------------------------------------------------------
12
*/
@@ -35,7 +35,7 @@ typedef union SockAddr {
35
36
#define UNIXSOCK_PATH(sun,port) \
37
(sprintf((sun).sun_path, "/tmp/.s.PGSQL.%d", (port)) + \
38
- sizeof ((sun).sun_family))
+ sizeof ((sun).sun_len) + sizeof ((sun).sun_family))
39
40
41
/*
0 commit comments