mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-22 20:23:01 +01:00
small fix
This commit is contained in:
parent
e8d2f9418b
commit
fe0ccf52e9
@ -136,7 +136,7 @@ static void chat_onFileSendRequest(ToxWindow *self, Tox *m, int num, uint8_t fil
|
||||
uint8_t cur_time[MAX_STR_SIZE];
|
||||
snprintf(cur_time, sizeof(cur_time), ".%02d:%02d:%02d", timeinfo->tm_hour, timeinfo->tm_min,
|
||||
timeinfo->tm_sec);
|
||||
strncat(filename, cur_time, MAX_STR_SIZE);
|
||||
strncat(filename, cur_time, MAX_STR_SIZE - strlen(filename));
|
||||
fclose(filecheck);
|
||||
}
|
||||
|
||||
|
@ -352,7 +352,7 @@ void do_file_senders(Tox *m)
|
||||
int i;
|
||||
|
||||
for (i = 0; i < MAX_FILES; ++i) {
|
||||
if (file_senders[i].file == NULL)
|
||||
if (!file_senders[i].active)
|
||||
continue;
|
||||
|
||||
while (true) {
|
||||
|
Loading…
Reference in New Issue
Block a user