fixed memcpy use in sockets_client.cpp