about summary refs log tree commit diff stats
path: root/src/ui/chatwin.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-02-17 12:05:58 +0100
committerMichael Vetter <jubalh@iodoru.org>2020-02-17 12:05:58 +0100
commitea5a947f528a544fd48feacc4f9fd53cff155359 (patch)
tree10438daa2c84237d5f96da22128c60f0945a428b /src/ui/chatwin.c
parent6e68f1812bd5260fa2d833ede300b228d7224851 (diff)
downloadprofani-tty-ea5a947f528a544fd48feacc4f9fd53cff155359.tar.gz
Refactor win_print_history()
We never use the printf like behaviour anyways.
Diffstat (limited to 'src/ui/chatwin.c')
-rw-r--r--src/ui/chatwin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/chatwin.c b/src/ui/chatwin.c
index ac1a83d7..3aeff951 100644
--- a/src/ui/chatwin.c
+++ b/src/ui/chatwin.c
@@ -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 {