From 8140f283f8ec22dcd74aab30168414a5a69b24dc Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Sun, 20 Oct 2024 23:31:31 -0400 Subject: [PATCH] fix: ansi: correct the buffer size for the parser --- ansi/parser_sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansi/parser_sync.go b/ansi/parser_sync.go index 562e806..c6f24d3 100644 --- a/ansi/parser_sync.go +++ b/ansi/parser_sync.go @@ -8,7 +8,7 @@ import ( var parserPool = sync.Pool{ New: func() any { - return NewParser(parser.MaxParamsSize, 1024*4) // 4MB data buffer + return NewParser(parser.MaxParamsSize, 1024*1024*4) // 4MB of data buffer }, }