From 04beb6dc3ca878aab48f283c1dc6699ca6a8a27b Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 27 Jan 2014 16:50:00 +0100 Subject: Add an aligned uint8_t type data_t and use it to ensure the alignment of various buffers on the stack --- src/send.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/send.c') diff --git a/src/send.c b/src/send.c index 9f76d31..feeb961 100644 --- a/src/send.c +++ b/src/send.c @@ -78,7 +78,7 @@ static void send_type(fastd_context_t *ctx, const fastd_socket_t *sock, const fa exit_bug(ctx, "send: sock == NULL"); struct msghdr msg = {}; - char cbuf[1024] = {}; + data_t cbuf[1024] = {}; fastd_peer_address_t remote_addr6; switch (remote_addr->sa.sa_family) { -- cgit v1.2.3