CLEANUP/MINOR: standard: use the system define INET6_ADDRSTRLEN in place of MAX_IP6_LEN
diff --git a/src/standard.c b/src/standard.c
index 1b7fdb0..ebbc70c 100644
--- a/src/standard.c
+++ b/src/standard.c
@@ -1696,12 +1696,11 @@
  * struct in6_addr <dst> which must be allocated by the caller.
  * This function returns 1 in success case, otherwise zero.
  */
-#define MAX_IP6_LEN 45
 int buf2ip6(const char *buf, size_t len, struct in6_addr *dst)
 {
-	char null_term_ip6[MAX_IP6_LEN + 1];
+	char null_term_ip6[INET6_ADDRSTRLEN + 1];
 
-	if (len > MAX_IP6_LEN)
+	if (len > INET6_ADDRSTRLEN)
 		return 0;
 
 	memcpy(null_term_ip6, buf, len);