From db4d35cd3d703c66da9888a7c58ced1d92843ec4 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Wed, 26 Feb 2014 15:20:47 +0100 Subject: [PATCH] Increase the internal log buffer. With the switch to 4K data packets in the Icon HD backend, the internal log buffer is no longer large enough for hexdumps of these data packets. A hexdump needs twice the size of the binary data, plus some extra bytes for the header and the terminating null byte. --- src/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context.c b/src/context.c index e145991..2bd30ce 100644 --- a/src/context.c +++ b/src/context.c @@ -38,7 +38,7 @@ struct dc_context_t { dc_logfunc_t logfunc; void *userdata; #ifdef ENABLE_LOGGING - char msg[4096]; + char msg[8192 + 32]; #ifdef _WIN32 DWORD timestamp; #else