mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Messenger fix from pr #461.
This commit is contained in:
parent
0e0785c822
commit
8eb8fb2ab5
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user