Skip to content

Commit ad9e1da

Browse files
committed
standardize buffer size
1 parent d44206f commit ad9e1da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/sockets/sockets.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ PHP_FUNCTION(socket_getsockname)
10861086
struct sockaddr_in6 *sin6;
10871087
#endif
10881088
#ifdef HAVE_INET_NTOP
1089-
char addrbuf[INET6_ADDRSTRLEN+1];
1089+
char addrbuf[INET6_ADDRSTRLEN];
10901090
#endif
10911091
struct sockaddr_un *s_un;
10921092
const char *addr_string;
@@ -1163,7 +1163,7 @@ PHP_FUNCTION(socket_getpeername)
11631163
struct sockaddr_in6 *sin6;
11641164
#endif
11651165
#ifdef HAVE_INET_NTOP
1166-
char addrbuf[INET6_ADDRSTRLEN+1];
1166+
char addrbuf[INET6_ADDRSTRLEN];
11671167
#endif
11681168
struct sockaddr_un *s_un;
11691169
const char *addr_string;

0 commit comments

Comments
 (0)