diff options
Diffstat (limited to 'toxcore/group.c')
-rw-r--r-- | toxcore/group.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/group.c b/toxcore/group.c index af2cb492..2eadaf74 100644 --- a/toxcore/group.c +++ b/toxcore/group.c | |||
@@ -1514,7 +1514,7 @@ static int handle_send_peers(Group_Chats *g_c, int groupnumber, const uint8_t *d | |||
1514 | 1514 | ||
1515 | const uint8_t *d = data; | 1515 | const uint8_t *d = data; |
1516 | 1516 | ||
1517 | while ((length - (d - data)) >= sizeof(uint16_t) + crypto_box_PUBLICKEYBYTES * 2 + 1) { | 1517 | while ((unsigned int)(length - (d - data)) >= sizeof(uint16_t) + crypto_box_PUBLICKEYBYTES * 2 + 1) { |
1518 | uint16_t peer_num; | 1518 | uint16_t peer_num; |
1519 | memcpy(&peer_num, d, sizeof(peer_num)); | 1519 | memcpy(&peer_num, d, sizeof(peer_num)); |
1520 | peer_num = ntohs(peer_num); | 1520 | peer_num = ntohs(peer_num); |