summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-04-30 02:00:17 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-04-30 02:00:17 +0200
commitf0eb3505fafe34bb11e0f335c322a50ae1f10e36 (patch)
tree57415707899d63f0e54e9a3db29ef5edd661cdb4 /lib
parent83d4a025e26e55034a5b01a0bade25f8cc517c1a (diff)
downloadNim-f0eb3505fafe34bb11e0f335c322a50ae1f10e36.tar.gz
make asyncnet work again
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/asyncnet.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/asyncnet.nim b/lib/pure/asyncnet.nim
index a75f9daac..7c354151b 100644
--- a/lib/pure/asyncnet.nim
+++ b/lib/pure/asyncnet.nim
@@ -201,7 +201,7 @@ when defineSsl:
       flags: set[SocketFlag]) {.async.} =
     let len = bioCtrlPending(socket.bioOut)
     if len > 0:
-      var data = newStringOfCap(len)
+      var data = newString(len)
       let read = bioRead(socket.bioOut, addr data[0], len)
       assert read != 0
       if read < 0: