From d8b2e046db23fd736b231db4860cec01250fc580 Mon Sep 17 00:00:00 2001 From: Luiz Souza Date: Sat, 7 Oct 2017 13:02:29 -0500 Subject: Increase the size of local storage to cope with the new IF_NAMESIZEi value. (cherry picked from commit 6166be6c2a909d29cf13a266c2a1576a1163deb5) --- lib/libc/net/linkaddr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc') 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; -- cgit v1.1