From 76c1d8bfcfe90f2c918a6b46f08c819f96f79d76 Mon Sep 17 00:00:00 2001 From: Artem Prilutskiy Date: Tue, 23 May 2017 10:21:38 +0300 Subject: [PATCH] .. --- RewindClient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RewindClient.c b/RewindClient.c index e230a0d..ff1ffee 100644 --- a/RewindClient.c +++ b/RewindClient.c @@ -157,7 +157,7 @@ ssize_t ReceiveRewindData(struct RewindContext* context, struct RewindData* buff struct sockaddr_in6 address; socklen_t size = sizeof(struct sockaddr_in6); - length = recvfrom(context->handle, buffer, BUFFER_SIZE, 0, (struct sockaddr*)&address, &size); + length = recvfrom(context->handle, buffer, length, 0, (struct sockaddr*)&address, &size); if (length < 0) return CLIENT_ERROR_SOCKET_IO;