summaryrefslogtreecommitdiff
path: root/core/Messenger.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-08-14 09:52:03 -0400
committerirungentoo <irungentoo@gmail.com>2013-08-14 09:52:03 -0400
commit8eb8fb2ab5f703388be8987fd6b2cdf9dbc567e9 (patch)
tree2510ab6ec35b9cdb2d01ba627a6914cf8c60e584 /core/Messenger.c
parent0e0785c822225328a3ccb9aeaf3378c731125b97 (diff)
Messenger fix from pr #461.
Diffstat (limited to 'core/Messenger.c')
-rw-r--r--core/Messenger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Messenger.c b/core/Messenger.c
index e2d83ada..690a81b1 100644
--- a/core/Messenger.c
+++ b/core/Messenger.c
@@ -746,7 +746,7 @@ void doMessenger(Messenger *m)
746/* returns the size of the messenger data (for saving) */ 746/* returns the size of the messenger data (for saving) */
747uint32_t Messenger_size(Messenger *m) 747uint32_t Messenger_size(Messenger *m)
748{ 748{
749 return crypto_box_PUBLICKEYBYTES + crypto_box_SECRETKEYBYTES 749 return crypto_box_PUBLICKEYBYTES + crypto_box_SECRETKEYBYTES + sizeof(uint32_t)
750 + sizeof(uint32_t) + DHT_size() + sizeof(uint32_t) + sizeof(Friend) * m->numfriends; 750 + sizeof(uint32_t) + DHT_size() + sizeof(uint32_t) + sizeof(Friend) * m->numfriends;
751} 751}
752 752