From 8eb8fb2ab5f703388be8987fd6b2cdf9dbc567e9 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Wed, 14 Aug 2013 09:52:03 -0400 Subject: [PATCH] Messenger fix from pr #461. --- core/Messenger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) /* returns the size of the messenger data (for saving) */ uint32_t Messenger_size(Messenger *m) { - return crypto_box_PUBLICKEYBYTES + crypto_box_SECRETKEYBYTES + return crypto_box_PUBLICKEYBYTES + crypto_box_SECRETKEYBYTES + sizeof(uint32_t) + sizeof(uint32_t) + DHT_size() + sizeof(uint32_t) + sizeof(Friend) * m->numfriends; }