From 707ba40b083cc1575be826c7c32447c990be13d2 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Fri, 14 Feb 2014 20:51:28 -0500 Subject: Fixed small bug in DHT. --- toxcore/DHT.c | 6 +++--- 1 file 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) --dht->num_friends; if (dht->num_friends != i) { - memcpy( dht->friends_list[i].client_id, - dht->friends_list[dht->num_friends].client_id, - CLIENT_ID_SIZE ); + memcpy( &dht->friends_list[i], + &dht->friends_list[dht->num_friends], + sizeof(DHT_Friend) ); } if (dht->num_friends == 0) { -- cgit v1.2.3