aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man7/netlink.75
1 files changed, 3 insertions, 2 deletions
diff --git a/man7/netlink.7 b/man7/netlink.7
index 81d42493e2..853dee67f3 100644
--- a/man7/netlink.7
+++ b/man7/netlink.7
@@ -533,8 +533,9 @@ And the last example is about reading netlink message.
.in +4n
.EX
int len;
-char buf[8192]; /* 8192 to avoid message truncation on
- platforms with page size > 4096 */
+/* 8192 to avoid message truncation on platforms with
+ page size > 4096 */
+struct nlmsghdr buf[8192/sizeof(struct nlmsghdr)];
struct iovec iov = { buf, sizeof(buf) };
struct sockaddr_nl sa;
struct msghdr msg;