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
This commit is contained in:
irungentoo 2015-03-09 14:32:37 -04:00
parent 73b9cf48f9
commit 4c4ffb7409
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -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)