summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_sockaddr.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_sockaddr.h')
-rw-r--r--src/nxt_sockaddr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_sockaddr.h b/src/nxt_sockaddr.h
index ca5d8054..aa4da5d2 100644
--- a/src/nxt_sockaddr.h
+++ b/src/nxt_sockaddr.h
@@ -99,10 +99,10 @@ NXT_EXPORT nxt_int_t nxt_inet6_addr(struct in6_addr *in6_addr, u_char *buf,
#endif
-#define NXT_INET_ADDR_STR_LEN (sizeof("255.255.255.255:65535") - 1)
+#define NXT_INET_ADDR_STR_LEN nxt_length("255.255.255.255:65535")
#define NXT_INET6_ADDR_STR_LEN \
- (sizeof("[ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff]:65535") - 1)
+ nxt_length("[ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff]:65535")
#define nxt_sockaddr_size(sa) \