mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-23 12:36:21 +00:00
Refactor win_print_history()
We never use the printf like behaviour anyways.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user