summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-07-30 14:26:24 +0000
committerng0 <ng0@n0.is>2019-07-30 14:26:24 +0000
commit8c6c3d4555dfb08c89332036f70c901275891b6b (patch)
tree8c23b7168fbe6eafd0e5bf75a10f4ad2791e90d7
parent2220c3f77380003b173dd321811f2fe7c123c25e (diff)
fix behavior on NetBSD, use the right sizeof.
-rw-r--r--src/microhttpd/mhd_send.c2
1 files changed, 1 insertions, 1 deletions
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;