Refactor win_print_history()

We never use the printf like behaviour anyways.
This commit is contained in:
Michael Vetter
2020-02-17 12:05:58 +01:00
parent 6e68f1812b
commit ea5a947f52
4 changed files with 6 additions and 14 deletions

View File

@@ -488,7 +488,7 @@ _chatwin_history(ProfChatWin *chatwin, const char *const contact)
char mm[3]; memcpy(mm, &line[3], 2); mm[2] = '\0'; int imm = atoi(mm);
char ss[3]; memcpy(ss, &line[6], 2); ss[2] = '\0'; int iss = atoi(ss);
GDateTime *timestamp = g_date_time_new_local(iyy, imo, idd, ihh, imm, iss);
win_print_history((ProfWin*)chatwin, timestamp, "%s", curr->data+11);
win_print_history((ProfWin*)chatwin, timestamp, curr->data+11);
g_date_time_unref(timestamp);
// header, containing the date from filename "21/10/2019:"
} else {