From a8a03a7434bba6bb620283164b8dfe5c0f0494e5 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 24 Mar 2015 12:56:16 +0000 Subject: [PATCH] Increase log buffer size when BUFSIZ is too small. --- src/libutil/logger.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libutil/logger.c b/src/libutil/logger.c index 905804ca46..65a85c7538 100644 --- a/src/libutil/logger.c +++ b/src/libutil/logger.c @@ -33,6 +33,7 @@ /* How much message should be repeated before it is count to be repeated one */ #define REPEATS_MIN 3 #define REPEATS_MAX 300 +#define RSPAMD_LOGBUF_SIZE 8192 /** * Static structure that store logging parameters @@ -385,7 +386,7 @@ rspamd_common_logv (rspamd_logger_t *rspamd_log, const gchar *fmt, va_list args) { - static gchar logbuf[BUFSIZ]; + static gchar logbuf[RSPAMD_LOGBUF_SIZE]; u_char *end; if (rspamd_log == NULL) { -- 2.47.3