diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-10-10 11:26:40 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-10-10 11:26:40 +0200 |
commit | 503248efdebf725de9ac0d5de3758bbdc6aafc16 (patch) | |
tree | 62d3025a1afa9f04b24fdb61f10436a4bebe66cc /lib | |
parent | 083cb00e8d5746abe34a4844334d7d777f504fec (diff) | |
download | Nim-503248efdebf725de9ac0d5de3758bbdc6aafc16.tar.gz |
another attempt to make tests green again
Diffstat (limited to 'lib')
-rw-r--r-- | lib/impure/ssl.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/impure/ssl.nim b/lib/impure/ssl.nim index e3312d792..5b0e899f6 100644 --- a/lib/impure/ssl.nim +++ b/lib/impure/ssl.nim @@ -63,16 +63,16 @@ proc recvLine*(sock: SecureSocket, line: var TaintedString): bool = setLen(line.string, 0) while true: var c: array[0..0, char] - var n = BIO_read(sock.bio, c, c.len.cint) + var n = BIO_read(sock.bio, addr c, c.len.cint) if n <= 0: return false if c[0] == '\r': - n = BIO_read(sock.bio, c, c.len.cint) + n = BIO_read(sock.bio, addr c, c.len.cint) if n > 0 and c[0] == '\L': return true elif n <= 0: return false elif c[0] == '\L': return true - add(line.string, c) + add(line.string, c[0]) proc send*(sock: SecureSocket, data: string) = |