summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLuiz Souza <luiz@netgate.com>2017-10-08 15:05:08 -0500
committerLuiz Souza <luiz@netgate.com>2017-10-08 15:05:08 -0500
commit9c27ea3dafe2b05007091b49d9699bfc148b1a51 (patch)
tree03ced381b1f1b886d83d3c3aa0d45aacf453b1e4 /lib
parentd72196208717818079d18d16996cab726f8465b1 (diff)
downloadFreeBSD-src-9c27ea3dafe2b05007091b49d9699bfc148b1a51.zip
FreeBSD-src-9c27ea3dafe2b05007091b49d9699bfc148b1a51.tar.gz
Revert "Increase the size of local storage to cope with the new IF_NAMESIZEi value."
This reverts commit d8b2e046db23fd736b231db4860cec01250fc580.
Diffstat (limited to 'lib')
-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 9be8e96..9432a53 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[128];
+ static char obuf[64];
_Static_assert(sizeof(obuf) >= IFNAMSIZ + 20, "obuf is too small");
char *out;
const u_char *in, *inlim;
OpenPOWER on IntegriCloud