diff options
Diffstat (limited to 'toxcore/net_crypto.c')
-rw-r--r-- | toxcore/net_crypto.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index 3ed46a99..43cc8ab1 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c | |||
@@ -1512,7 +1512,8 @@ static int handle_data_packet_core(Net_Crypto *c, int crypt_connection_id, const | |||
1512 | return -1; | 1512 | return -1; |
1513 | } | 1513 | } |
1514 | 1514 | ||
1515 | uint32_t buffer_start, num; | 1515 | uint32_t buffer_start; |
1516 | uint32_t num; | ||
1516 | memcpy(&buffer_start, data, sizeof(uint32_t)); | 1517 | memcpy(&buffer_start, data, sizeof(uint32_t)); |
1517 | memcpy(&num, data + sizeof(uint32_t), sizeof(uint32_t)); | 1518 | memcpy(&num, data + sizeof(uint32_t), sizeof(uint32_t)); |
1518 | buffer_start = net_ntohl(buffer_start); | 1519 | buffer_start = net_ntohl(buffer_start); |