summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorLuiz Souza <luiz@netgate.com>2017-10-07 13:02:29 -0500
committerLuiz Souza <luiz@netgate.com>2017-10-07 13:06:47 -0500
commitd8b2e046db23fd736b231db4860cec01250fc580 (patch)
tree6c818e9aae00d391d1c0821c5b7c31cf94cb2a27 /lib/libc
parent74ffe70f496b45f72a1f37a53f81c346efd327c3 (diff)
downloadFreeBSD-src-d8b2e046db23fd736b231db4860cec01250fc580.zip
FreeBSD-src-d8b2e046db23fd736b231db4860cec01250fc580.tar.gz
Increase the size of local storage to cope with the new IF_NAMESIZEi value.
(cherry picked from commit 6166be6c2a909d29cf13a266c2a1576a1163deb5)
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/net/linkaddr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/net/linkaddr.c b/lib/libc/net/linkaddr.c
index 9432a53..9be8e96 100644
--- a/lib/libc/net/linkaddr.c
+++ b/lib/libc/net/linkaddr.c
@@ -122,7 +122,7 @@ static const char hexlist[] = "0123456789abcdef";
char *
link_ntoa(const struct sockaddr_dl *sdl)
{
- static char obuf[64];
+ static char obuf[128];
_Static_assert(sizeof(obuf) >= IFNAMSIZ + 20, "obuf is too small");
char *out;
const u_char *in, *inlim;
OpenPOWER on IntegriCloud