Skip to content

Commit

Permalink
Fixed bug, unconfirmed friends now load correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
irungentoo committed Mar 13, 2014
1 parent 2bb5e2c commit cb9b8fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toxcore/Messenger.c
Original file line number Diff line number Diff line change
Expand Up @@ -2416,7 +2416,7 @@ static int friends_list_load(Messenger *m, uint8_t *data, uint32_t length)
memcpy(address + crypto_box_PUBLICKEYBYTES, &(temp.friendrequest_nospam), sizeof(uint32_t));
uint16_t checksum = address_checksum(address, FRIEND_ADDRESS_SIZE - sizeof(checksum));
memcpy(address + crypto_box_PUBLICKEYBYTES + sizeof(uint32_t), &checksum, sizeof(checksum));
m_addfriend(m, address, temp.info, temp.info_size);
m_addfriend(m, address, temp.info, ntohs(temp.info_size));
}
}

Expand Down

0 comments on commit cb9b8fc

Please sign in to comment.