mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed bug in Lossless UDP.
This commit is contained in:
parent
993554bdf6
commit
7e5da03637
|
@ -685,7 +685,7 @@ static int handle_SYNC3(Lossless_UDP *ludp, int connection_id, uint8_t counter,
|
|||
|
||||
for (i = 0; i < number; ++i) {
|
||||
temp = ntohl(req_packets[i]);
|
||||
memcpy(connection->req_packets + i, &temp, 4 * number);
|
||||
memcpy(connection->req_packets + i, &temp, sizeof(uint32_t));
|
||||
}
|
||||
|
||||
connection->num_req_paquets = number;
|
||||
|
|
Loading…
Reference in New Issue
Block a user