summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-03-13 15:10:59 -0400
committerirungentoo <irungentoo@gmail.com>2014-03-13 15:10:59 -0400
commitcb9b8fc7cdb03b7f6fa3b4b57818af8cf3203da5 (patch)
treeac3a8de3a7aacd29670aaf840842b0a4d5002565
parent2bb5e2c08488d4f43c964fcb92629dca2d294e7a (diff)
Fixed bug, unconfirmed friends now load correctly.
-rw-r--r--toxcore/Messenger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c
index f4e497d0..9d5fe22a 100644
--- a/toxcore/Messenger.c
+++ b/toxcore/Messenger.c
@@ -2416,7 +2416,7 @@ static int friends_list_load(Messenger *m, uint8_t *data, uint32_t length)
2416 memcpy(address + crypto_box_PUBLICKEYBYTES, &(temp.friendrequest_nospam), sizeof(uint32_t)); 2416 memcpy(address + crypto_box_PUBLICKEYBYTES, &(temp.friendrequest_nospam), sizeof(uint32_t));
2417 uint16_t checksum = address_checksum(address, FRIEND_ADDRESS_SIZE - sizeof(checksum)); 2417 uint16_t checksum = address_checksum(address, FRIEND_ADDRESS_SIZE - sizeof(checksum));
2418 memcpy(address + crypto_box_PUBLICKEYBYTES + sizeof(uint32_t), &checksum, sizeof(checksum)); 2418 memcpy(address + crypto_box_PUBLICKEYBYTES + sizeof(uint32_t), &checksum, sizeof(checksum));
2419 m_addfriend(m, address, temp.info, temp.info_size); 2419 m_addfriend(m, address, temp.info, ntohs(temp.info_size));
2420 } 2420 }
2421 } 2421 }
2422 2422