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:
parent
815b9074fc
commit
cb1e893e2d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue