diff options
author | irungentoo <irungentoo@gmail.com> | 2015-06-13 22:50:45 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2015-06-13 22:50:45 -0400 |
commit | 1bfb76bafe18ac8233c675f956662ea4ac764507 (patch) | |
tree | 6cbc878fa7c91d5edfaf6fcf863df2fd2392d433 /toxcore | |
parent | 836daa9e95739a6d8d94532fcf906fc682d492a4 (diff) |
Fixed warning.
Diffstat (limited to 'toxcore')
-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); |