From 4c4ffb74093037ab6cd02d310a07b73022becf83 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Mon, 9 Mar 2015 14:32:37 -0400 Subject: [PATCH] Fixed case where a recv and a sending file would have the same number. recv file numbers are now (file num in packet + 1) << 16 --- toxcore/Messenger.c | 1 + 1 file changed, 1 insertion(+) diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index 9b5d75fc..251d00d2 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c @@ -1765,6 +1765,7 @@ static int handle_packet(void *object, int i, uint8_t *temp, uint16_t len) filename_terminated[data_length - head_length] = 0; uint32_t real_filenumber = filenumber; + real_filenumber += 1; real_filenumber <<= 16; if (m->file_sendrequest)