]> source.dussan.org Git - rspamd.git/commitdiff
Increase log buffer size when BUFSIZ is too small.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 Mar 2015 12:56:16 +0000 (12:56 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 Mar 2015 12:56:16 +0000 (12:56 +0000)
src/libutil/logger.c

index 905804ca469bd3d397188e861a991aafecef7f8e..65a85c75380dec081c7c22f5c3b0f08dfec312a1 100644 (file)
@@ -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) {