diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-01-27 16:50:00 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-01-27 16:50:00 +0100 |
commit | 04beb6dc3ca878aab48f283c1dc6699ca6a8a27b (patch) | |
tree | 0a20683c76645e69b7236355df634fdd32842766 /src/send.c | |
parent | bb0235f7d8db0c0ea814118593da973609352089 (diff) | |
download | fastd-04beb6dc3ca878aab48f283c1dc6699ca6a8a27b.tar fastd-04beb6dc3ca878aab48f283c1dc6699ca6a8a27b.zip |
Add an aligned uint8_t type data_t and use it to ensure the alignment of various buffers on the stack
Diffstat (limited to 'src/send.c')
-rw-r--r-- | src/send.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |