diff options
author | James Booth <boothj5@gmail.com> | 2014-07-20 21:53:50 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-07-20 21:53:50 +0100 |
commit | 5ce08adff6b7e9cd5a03418860b2fc6ce0c84b99 (patch) | |
tree | 300ec484c9a0d7503acfa7967f5ad03e5d72c561 | |
parent | b125fa0febed133213c107a291e856deb760b58e (diff) | |
download | profani-tty-5ce08adff6b7e9cd5a03418860b2fc6ce0c84b99.tar.gz |
Added BUFF_SIZE back again
-rw-r--r-- | src/ui/buffer.c | 4 |
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); } |