about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-07-20 21:53:50 +0100
committerJames Booth <boothj5@gmail.com>2014-07-20 21:53:50 +0100
commit5ce08adff6b7e9cd5a03418860b2fc6ce0c84b99 (patch)
tree300ec484c9a0d7503acfa7967f5ad03e5d72c561
parentb125fa0febed133213c107a291e856deb760b58e (diff)
downloadprofani-tty-5ce08adff6b7e9cd5a03418860b2fc6ce0c84b99.tar.gz
Added BUFF_SIZE back again
-rw-r--r--src/ui/buffer.c4
1 files changed, 3 insertions, 1 deletions
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);
     }