1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Added BUFF_SIZE back again

This commit is contained in:
James Booth 2014-07-20 21:53:50 +01:00
parent b125fa0feb
commit 5ce08adff6

View File

@ -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);
}