From 317e47d70c53c016dc1f9fbed1837a8b359d9798 Mon Sep 17 00:00:00 2001 From: Marcus Winter Date: Tue, 30 Dec 2014 15:30:08 +0100 Subject: [PATCH] mtapi_network_c: fixed buf in recvbuffer --- mtapi_network_c/src/embb_mtapi_network_socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mtapi_network_c/src/embb_mtapi_network_socket.c b/mtapi_network_c/src/embb_mtapi_network_socket.c index e2e7c7f..07d4e82 100644 --- a/mtapi_network_c/src/embb_mtapi_network_socket.c +++ b/mtapi_network_c/src/embb_mtapi_network_socket.c @@ -215,7 +215,7 @@ int embb_mtapi_network_socket_recvbuffer_sized( if (cnt == size) break; buf += err; - err = recv(that->handle, buf + cnt, size - cnt, 0); + err = recv(that->handle, buf, size - cnt, 0); } if (err > 0) err = cnt; -- libgit2 0.26.0