mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
memcpy -> memmove
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1278 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -422,7 +422,7 @@ std::string CUPnPDevice::HTTP(std::string url, std::string post, std::string act
|
||||
memset(&socktcp, 0, sizeof(struct sockaddr_in));
|
||||
socktcp.sin_family = AF_INET;
|
||||
socktcp.sin_port = htons(port);
|
||||
memcpy((char *)&socktcp.sin_addr, hp->h_addr, hp->h_length);
|
||||
memmove((char *)&socktcp.sin_addr, hp->h_addr, hp->h_length);
|
||||
|
||||
if (connect(t_socket, (struct sockaddr*) &socktcp, sizeof(struct sockaddr_in)))
|
||||
{
|
||||
|
Reference in New Issue
Block a user