From 3f16af55b26d45dd8ab921f518fe207f27a9b4c0 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Thu, 5 Mar 2020 21:01:47 +0000 Subject: [PATCH] Align the buffer to the alignment of the structure we expect. Submitted by: Slawa Olhovchenkov --- sbin/mount_nfs/mount_nfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/mount_nfs/mount_nfs.c b/sbin/mount_nfs/mount_nfs.c index 8d8ddac62224..e1eaf206e982 100644 --- a/sbin/mount_nfs/mount_nfs.c +++ b/sbin/mount_nfs/mount_nfs.c @@ -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;