aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/logger.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-24 12:56:16 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-24 12:56:16 +0000
commita8a03a7434bba6bb620283164b8dfe5c0f0494e5 (patch)
tree4560b85c9f56e9505dfd85f5b7ccddddd3c1c1a9 /src/libutil/logger.c
parente62051bb31def15690dbd83765865ae9810da4a7 (diff)
downloadrspamd-a8a03a7434bba6bb620283164b8dfe5c0f0494e5.tar.gz
rspamd-a8a03a7434bba6bb620283164b8dfe5c0f0494e5.zip
Increase log buffer size when BUFSIZ is too small.
Diffstat (limited to 'src/libutil/logger.c')
-rw-r--r--src/libutil/logger.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libutil/logger.c b/src/libutil/logger.c
index 905804ca4..65a85c753 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) {