Align the buffer to the alignment of the structure we expect.

Submitted by:	Slawa Olhovchenkov <slw zxy.spb.ru>
This commit is contained in:
glebius 2020-03-05 21:01:47 +00:00
parent 9258693539
commit 195b907005

View File

@ -514,7 +514,7 @@ sec_num_to_name(int flavor)
static time_t
rtm_ifinfo_sleep(time_t sec)
{
char buf[2048];
char buf[2048] __aligned(__alignof(struct if_msghdr));
fd_set rfds;
struct timeval tv, start;
ssize_t nread;