From 5ce08adff6b7e9cd5a03418860b2fc6ce0c84b99 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 20 Jul 2014 21:53:50 +0100 Subject: [PATCH] Added BUFF_SIZE back again --- src/ui/buffer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui/buffer.c b/src/ui/buffer.c index 5ec68bd2..5b39f08a 100644 --- a/src/ui/buffer.c +++ b/src/ui/buffer.c @@ -15,6 +15,8 @@ #include "ui/window.h" #include "ui/buffer.h" +#define BUFF_SIZE 1200 + struct prof_buff_t { GSList *entries; }; @@ -61,7 +63,7 @@ buffer_push(ProfBuff buffer, const char show_char, const char * const date_fmt, e->message = malloc(strlen(message)+1); strcpy(e->message, message); - if (g_slist_length(buffer->entries) == PAD_SIZE) { + if (g_slist_length(buffer->entries) == BUFF_SIZE) { _free_entry(buffer->entries->data); buffer->entries = g_slist_delete_link(buffer->entries, buffer->entries); }