mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed small mistake (Thank you stal).
This commit is contained in:
parent
f27b5c9296
commit
817ad50d96
|
@ -781,7 +781,7 @@ int DHT_delfriend(uint8_t * client_id)
|
|||
{
|
||||
memcpy(friends_list[i].client_id, friends_list[num_friends].client_id, CLIENT_ID_SIZE);
|
||||
}
|
||||
temp = realloc(friends_list, sizeof(friends_list) * (num_friends));
|
||||
temp = realloc(friends_list, sizeof(Friend) * (num_friends));
|
||||
if(temp != NULL)
|
||||
{
|
||||
friends_list = temp;
|
||||
|
|
Loading…
Reference in New Issue
Block a user