about summary refs log tree commit diff stats
path: root/src/ui/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/buffer.c')
-rw-r--r--src/ui/buffer.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ui/buffer.c b/src/ui/buffer.c
index a1a992b1..2fa1fe9a 100644
--- a/src/ui/buffer.c
+++ b/src/ui/buffer.c
@@ -80,14 +80,14 @@ buffer_free(ProfBuff buffer)
 }
 
 void
-buffer_push(ProfBuff buffer, const char show_char, const char * const date_fmt,
+buffer_push(ProfBuff buffer, const char show_char, GDateTime *time,
     int flags, int attrs, const char * const from, const char * const message)
 {
     ProfBuffEntry *e = malloc(sizeof(struct prof_buff_entry_t));
     e->show_char = show_char;
     e->flags = flags;
     e->attrs = attrs;
-    e->date_fmt = strdup(date_fmt);
+    e->time = time;
     e->from = strdup(from);
     e->message = strdup(message);
 
@@ -111,7 +111,6 @@ _free_entry(ProfBuffEntry *entry)
 {
     free(entry->message);
     free(entry->from);
-    free(entry->date_fmt);
+    g_date_time_unref(entry->time);
     free(entry);
-}
-
+}
\ No newline at end of file