From a029f5dd4ab3bd96c6427d376aba3358e48db85c Mon Sep 17 00:00:00 2001 From: minexew Date: Thu, 9 Feb 2017 00:12:10 +0100 Subject: [PATCH] After fixing recvall, remove another of its usages --- SnailNet/Socket.HC | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SnailNet/Socket.HC b/SnailNet/Socket.HC index fee92e21..7e5b818a 100644 --- a/SnailNet/Socket.HC +++ b/SnailNet/Socket.HC @@ -11,7 +11,7 @@ I64 recvLine(I64 sock, U8* buffer, I64 size, I64 flags) { I64 got = 0; while (got + 1 < size) { - if (!recvall(sock, buffer + got, 1, flags)) + if (!recv(sock, buffer + got, 1, flags)) return -1; if (buffer[got] == '\n')