Make net module compile with --taintMode:on (#11360)

This commit is contained in:
Smittyvb
2019-06-01 04:44:40 -04:00
committed by Andreas Rumpf
parent 6b23b2d7df
commit 40c5509a02

View File

@@ -1263,7 +1263,7 @@ proc recvLine*(socket: Socket, timeout = -1,
## that can be read. The result is truncated after that.
##
## **Warning**: Only the ``SafeDisconn`` flag is currently supported.
result = ""
result = "".TaintedString
readLine(socket, result, timeout, flags, maxLength)
proc recvFrom*(socket: Socket, data: var string, length: int,