From e7aa979303ac10febc88401e25f026122551529c Mon Sep 17 00:00:00 2001 From: Oliver Giles Date: Sat, 12 Aug 2017 17:32:55 +0300 Subject: [PATCH] bugfix: wrong log compression limit check operator --- src/laminar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/laminar.cpp b/src/laminar.cpp index 3009b65..8f915bf 100644 --- a/src/laminar.cpp +++ b/src/laminar.cpp @@ -151,7 +151,7 @@ void Laminar::sendStatus(LaminarClient* client) { .bind(client->scope.job, client->scope.num) .fetch([=](str maybeZipped, unsigned long sz) { std::string log(sz+1,'\0'); - if(sz < COMPRESS_LOG_MIN_SIZE) { + if(sz >= COMPRESS_LOG_MIN_SIZE) { int res = ::uncompress((unsigned char*)&log[0], &sz, (unsigned char*)maybeZipped.data(), maybeZipped.size()); if(res == Z_OK)