summaryrefslogtreecommitdiffstats
path: root/examples/genl/genl-family-get.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/genl/genl-family-get.c')
-rw-r--r--examples/genl/genl-family-get.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/genl/genl-family-get.c b/examples/genl/genl-family-get.c
index 326755e..b015466 100644
--- a/examples/genl/genl-family-get.c
+++ b/examples/genl/genl-family-get.c
@@ -183,7 +183,7 @@ static int data_cb(const struct nlmsghdr *nlh, void *data)
int main(int argc, char *argv[])
{
struct mnl_socket *nl;
- char buf[getpagesize()];
+ char buf[MNL_SOCKET_BUFFER_SIZE];
struct nlmsghdr *nlh;
struct genlmsghdr *genl;
int ret;