diff options
author | bptato <nincsnevem662@gmail.com> | 2023-12-15 13:04:18 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-12-15 13:04:28 +0100 |
commit | a55c1ab95ecb0d79c73bbb82edd99b737c601260 (patch) | |
tree | b14085c0655cf07796a7ffd60bb4bfac528fe04c /src/server/buffer.nim | |
parent | 2b56e59510ffe7f118702272fea46ea2a72aa3af (diff) | |
download | chawan-a55c1ab95ecb0d79c73bbb82edd99b737c601260.tar.gz |
buffer: use BufferSize constant
Diffstat (limited to 'src/server/buffer.nim')
-rw-r--r-- | src/server/buffer.nim | 2 |
1 files changed, 1 insertions, 1 deletions
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) |