4
Fork 0
This commit is contained in:
Artem Prilutskiy 2017-05-23 10:21:38 +03:00
parent 7bc733fd51
commit 76c1d8bfcf

View file

@ -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;