Skip to content

Commit

Permalink
Fix wrong order for memcpy arguments in sqSocketSetReusable
Browse files Browse the repository at this point in the history
This is my mistake from recent commit
0e8de85
Sorry
  • Loading branch information
nicolas-cellier-aka-nice committed Nov 1, 2019
1 parent f6bed1e commit 8484aec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/unix/plugins/SocketPlugin/sqUnixSocket.c
Original file line number Diff line number Diff line change
Expand Up @@ -1450,7 +1450,7 @@ void sqSocketSetReusable(SocketPtr s)

if (!socketValid(s)) return;

memcpy(buf,4,&one);
memcpy(buf,&one,4);
bufSize= 4;
if (setsockopt(SOCKET(s), SOL_SOCKET, SO_REUSEADDR, buf, bufSize) < 0)
{
Expand Down

0 comments on commit 8484aec

Please sign in to comment.