mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
fixed calculation of messenger size (no spam was not accounted for)
This commit is contained in:
parent
bfa624139a
commit
08735b142f
|
@ -751,7 +751,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