Commit 317e47d7 by Marcus Winter

mtapi_network_c: fixed buf in recvbuffer

parent 91ca4a2d
...@@ -215,7 +215,7 @@ int embb_mtapi_network_socket_recvbuffer_sized( ...@@ -215,7 +215,7 @@ int embb_mtapi_network_socket_recvbuffer_sized(
if (cnt == size) if (cnt == size)
break; break;
buf += err; buf += err;
err = recv(that->handle, buf + cnt, size - cnt, 0); err = recv(that->handle, buf, size - cnt, 0);
} }
if (err > 0) if (err > 0)
err = cnt; err = cnt;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment