From a55c1ab95ecb0d79c73bbb82edd99b737c601260 Mon Sep 17 00:00:00 2001 From: bptato Date: Fri, 15 Dec 2023 13:04:18 +0100 Subject: buffer: use BufferSize constant --- src/server/buffer.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/buffer.nim') diff --git a/src/server/buffer.nim b/src/server/buffer.nim index 4138f1e3..2217522b 100644 --- a/src/server/buffer.nim +++ b/src/server/buffer.nim @@ -1149,7 +1149,7 @@ proc onload(buffer: Buffer) = of LOADING_PAGE: discard let op = buffer.sstream.getPosition() - var s {.noInit.}: array[16384, uint8] + var s {.noInit.}: array[BufferSize, uint8] try: buffer.sstream.setPosition(op + buffer.available) let n = buffer.istream.readData(addr s[0], buffer.readbufsize) -- cgit 1.4.1-2-gfad0