mirror of
https://github.com/Tha14/toxic.git
synced 2025-12-07 19:46:35 +01:00
fix a few file transfer bugs
This commit is contained in:
@@ -107,9 +107,9 @@ void do_file_senders(Tox *m)
|
||||
if (remain)
|
||||
pct_remain = (1 - (remain / size)) * 100;
|
||||
|
||||
const uint8_t *name = file_senders[filenum].pathname;
|
||||
const uint8_t *name = file_senders[i].pathname;
|
||||
snprintf(msg, sizeof(msg), "File transfer for '%s' accepted (%.1Lf%%)", name, pct_remain);
|
||||
line_info_set(self, file_senders[filenum].line_id, msg);
|
||||
line_info_set(self, file_senders[i].line_id, msg);
|
||||
}
|
||||
|
||||
if (file_senders[i].piecelen == 0) {
|
||||
|
||||
Reference in New Issue
Block a user