summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Rose <michael_rose@gmx.de>2013-08-14 11:38:30 +0200
committerMichael Rose <michael_rose@gmx.de>2013-08-14 11:38:30 +0200
commit08735b142fd43e77b3bdd55da8243b157445481d (patch)
treeff2471d62ebd79b26c88167f6dbb07e50760d72f
parentbfa624139a3d4b7ef582c13bb571c6b95b6141c8 (diff)
fixed calculation of messenger size (no spam was not accounted for)
-rw-r--r--core/Messenger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Messenger.c b/core/Messenger.c
index 2721f8f6..07145416 100644
--- a/core/Messenger.c
+++ b/core/Messenger.c
@@ -751,7 +751,7 @@ void doMessenger(Messenger *m)
751/* returns the size of the messenger data (for saving) */ 751/* returns the size of the messenger data (for saving) */
752uint32_t Messenger_size(Messenger *m) 752uint32_t Messenger_size(Messenger *m)
753{ 753{
754 return crypto_box_PUBLICKEYBYTES + crypto_box_SECRETKEYBYTES 754 return crypto_box_PUBLICKEYBYTES + crypto_box_SECRETKEYBYTES + sizeof(uint32_t)
755 + sizeof(uint32_t) + DHT_size() + sizeof(uint32_t) + sizeof(Friend) * m->numfriends; 755 + sizeof(uint32_t) + DHT_size() + sizeof(uint32_t) + sizeof(Friend) * m->numfriends;
756} 756}
757 757