diff options
author | ng0 <ng0@n0.is> | 2019-07-30 14:26:24 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-07-30 14:26:24 +0000 |
commit | 8c6c3d4555dfb08c89332036f70c901275891b6b (patch) | |
tree | 8c23b7168fbe6eafd0e5bf75a10f4ad2791e90d7 | |
parent | 2220c3f77380003b173dd321811f2fe7c123c25e (diff) | |
download | libmicrohttpd-8c6c3d4555dfb08c89332036f70c901275891b6b.tar.gz libmicrohttpd-8c6c3d4555dfb08c89332036f70c901275891b6b.zip |
fix behavior on NetBSD, use the right sizeof.
-rw-r--r-- | src/microhttpd/mhd_send.c | 2 |
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, | |||
337 | 337 | ||
338 | #if HAVE_SENDMSG | 338 | #if HAVE_SENDMSG |
339 | struct msghdr msg; | 339 | struct msghdr msg; |
340 | memset(&msg, 0, sizeof(msg)); | 340 | memset(&msg, 0, sizeof(struct msghdr)); |
341 | 341 | ||
342 | msg.msg_iov = vector; | 342 | msg.msg_iov = vector; |
343 | msg.msg_iovlen = 2; | 343 | msg.msg_iovlen = 2; |