1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-26 21:53:27 +01:00

small fix

This commit is contained in:
Jfreegman 2013-10-18 22:18:48 -04:00
parent e8d2f9418b
commit fe0ccf52e9
2 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ static void chat_onFileSendRequest(ToxWindow *self, Tox *m, int num, uint8_t fil
uint8_t cur_time[MAX_STR_SIZE]; uint8_t cur_time[MAX_STR_SIZE];
snprintf(cur_time, sizeof(cur_time), ".%02d:%02d:%02d", timeinfo->tm_hour, timeinfo->tm_min, snprintf(cur_time, sizeof(cur_time), ".%02d:%02d:%02d", timeinfo->tm_hour, timeinfo->tm_min,
timeinfo->tm_sec); timeinfo->tm_sec);
strncat(filename, cur_time, MAX_STR_SIZE); strncat(filename, cur_time, MAX_STR_SIZE - strlen(filename));
fclose(filecheck); fclose(filecheck);
} }

View File

@ -352,7 +352,7 @@ void do_file_senders(Tox *m)
int i; int i;
for (i = 0; i < MAX_FILES; ++i) { for (i = 0; i < MAX_FILES; ++i) {
if (file_senders[i].file == NULL) if (!file_senders[i].active)
continue; continue;
while (true) { while (true) {