diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-11-13 22:11:15 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-11-13 22:11:15 +0000 |
commit | 44617ca9ecb5598585b474923f9dd5bf1fd0cc0e (patch) | |
tree | 60b938e01c0b7772b4c27fe68d5a0441b2ce900e /src/util/client.c | |
parent | b9e05ddfffa6e716b1e725d367d6dc3e2a1cde02 (diff) | |
download | gnunet-44617ca9ecb5598585b474923f9dd5bf1fd0cc0e.tar.gz gnunet-44617ca9ecb5598585b474923f9dd5bf1fd0cc0e.zip |
-align message buffer
Diffstat (limited to 'src/util/client.c')
-rw-r--r-- | src/util/client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/client.c b/src/util/client.c index 0a8e99f88..88a3b392c 100644 --- a/src/util/client.c +++ b/src/util/client.c | |||
@@ -570,7 +570,7 @@ receive_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
570 | (const struct GNUNET_MessageHeader *) client->received_buf; | 570 | (const struct GNUNET_MessageHeader *) client->received_buf; |
571 | void *handler_cls = client->receiver_handler_cls; | 571 | void *handler_cls = client->receiver_handler_cls; |
572 | uint16_t msize = ntohs (cmsg->size); | 572 | uint16_t msize = ntohs (cmsg->size); |
573 | char mbuf[msize]; | 573 | char mbuf[msize] GNUNET_ALIGN; |
574 | struct GNUNET_MessageHeader *msg = (struct GNUNET_MessageHeader *) mbuf; | 574 | struct GNUNET_MessageHeader *msg = (struct GNUNET_MessageHeader *) mbuf; |
575 | 575 | ||
576 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Received message of type %u and size %u from %s service.\n", | 576 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Received message of type %u and size %u from %s service.\n", |