diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/DHT.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -781,7 +781,7 @@ int DHT_delfriend(uint8_t * client_id) | |||
781 | { | 781 | { |
782 | memcpy(friends_list[i].client_id, friends_list[num_friends].client_id, CLIENT_ID_SIZE); | 782 | memcpy(friends_list[i].client_id, friends_list[num_friends].client_id, CLIENT_ID_SIZE); |
783 | } | 783 | } |
784 | temp = realloc(friends_list, sizeof(friends_list) * (num_friends)); | 784 | temp = realloc(friends_list, sizeof(Friend) * (num_friends)); |
785 | if(temp != NULL) | 785 | if(temp != NULL) |
786 | { | 786 | { |
787 | friends_list = temp; | 787 | friends_list = temp; |