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
commit 40c5509a02

View file

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