From 8c6c3d4555dfb08c89332036f70c901275891b6b Mon Sep 17 00:00:00 2001 From: ng0 Date: Tue, 30 Jul 2019 14:26:24 +0000 Subject: fix behavior on NetBSD, use the right sizeof. --- src/microhttpd/mhd_send.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c index b2a52ba7..69239acc 100644 --- a/src/microhttpd/mhd_send.c +++ b/src/microhttpd/mhd_send.c @@ -337,7 +337,7 @@ MHD_send_on_connection2_ (struct MHD_Connection *connection, #if HAVE_SENDMSG struct msghdr msg; - memset(&msg, 0, sizeof(msg)); + memset(&msg, 0, sizeof(struct msghdr)); msg.msg_iov = vector; msg.msg_iovlen = 2; -- cgit v1.2.3