From: Vsevolod Stakhov Date: Tue, 24 Mar 2015 12:56:16 +0000 (+0000) Subject: Increase log buffer size when BUFSIZ is too small. X-Git-Tag: 0.9.0~441 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a8a03a7434bba6bb620283164b8dfe5c0f0494e5;p=thirdparty%2Frspamd.git Increase log buffer size when BUFSIZ is too small. --- 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) {