diff options
-rw-r--r-- | core/Messenger.c | 2 |
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) */ |
747 | uint32_t Messenger_size(Messenger *m) | 747 | uint32_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 | ||