summaryrefslogtreecommitdiff
path: root/toxcore/DHT.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/DHT.c')
-rw-r--r--toxcore/DHT.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/DHT.c b/toxcore/DHT.c
index 67e2f378..982b06c4 100644
--- a/toxcore/DHT.c
+++ b/toxcore/DHT.c
@@ -1250,9 +1250,9 @@ int DHT_delfriend(DHT *dht, uint8_t *client_id)
1250 --dht->num_friends; 1250 --dht->num_friends;
1251 1251
1252 if (dht->num_friends != i) { 1252 if (dht->num_friends != i) {
1253 memcpy( dht->friends_list[i].client_id, 1253 memcpy( &dht->friends_list[i],
1254 dht->friends_list[dht->num_friends].client_id, 1254 &dht->friends_list[dht->num_friends],
1255 CLIENT_ID_SIZE ); 1255 sizeof(DHT_Friend) );
1256 } 1256 }
1257 1257
1258 if (dht->num_friends == 0) { 1258 if (dht->num_friends == 0) {