about summary refs log tree commit diff stats
path: root/src/loader
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-06-22 18:14:21 +0200
committerbptato <nincsnevem662@gmail.com>2024-06-22 18:15:56 +0200
commitf6db5536c834185f7078e9614db7cca9faf3d153 (patch)
tree7e54b442eeea22cf2e3615adc75142b2606fbc03 /src/loader
parent3e353c07a5c3d5f6c22062adf684cea59c0e86a3 (diff)
downloadchawan-f6db5536c834185f7078e9614db7cca9faf3d153.tar.gz
misc cleanups
Diffstat (limited to 'src/loader')
-rw-r--r--src/loader/loader.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/loader/loader.nim b/src/loader/loader.nim
index 31de14c3..7c76ae59 100644
--- a/src/loader/loader.nim
+++ b/src/loader/loader.nim
@@ -1071,7 +1071,7 @@ proc onError*(loader: FileLoader; fd: int) =
     when defined(debug):
       var lbuf {.noinit.}: array[BufferSize, char]
       if not response.body.isend:
-        let n = response.body.recvData(addr lbuf[0], lbuf.len)
+        let n = response.body.recvData(lbuf)
         assert n == 0
       assert response.body.isend
     response.bodyRead.resolve()