1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

client: connect: use memmove due to possible overlap

This commit is contained in:
Andy Green 2021-01-03 08:21:57 +00:00
parent 815b9074fc
commit cb1e893e2d

View file

@ -385,7 +385,7 @@ ads_known:
#if defined(LWS_WITH_UNIX_SOCK)
if (!wsi->unix_skt)
#endif
memcpy(&wsi->sa46_peer, psa, n);
memmove(&wsi->sa46_peer, psa, (unsigned int)n);
/*
* Finally, make the actual connection attempt