Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
After fixing recvall, remove another of its usages
Browse files Browse the repository at this point in the history
  • Loading branch information
minexew committed Feb 8, 2017
1 parent d9d2c6b commit a029f5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SnailNet/Socket.HC
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit a029f5d

Please sign in to comment.