Messenger fix from pr #461.

This commit is contained in:
irungentoo 2013-08-14 09:52:03 -04:00
parent 0e0785c822
commit 8eb8fb2ab5

View File

@ -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;
}